博客项目nginx配置文件

1、nginx/conf/nginx.conf

[root@hechaojie nginx]# cat conf/nginx.conf

events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;

    server {
        listen       80;
        server_name  localhost;

        location / {
            proxy_pass http://localhost:10010; 
       }

       location /ueditor{
       root /data/blog-front;
    }
        location /css{
           root /data/blog-front/run;
        }
        location /images{
           root /data/blog-front/run;
        }

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
            index index.html;
        }
    }

    server {
        listen       80;
        server_name  solr.hechaojie.com;

        location / {
            proxy_pass http://localhost:9001;
        }
    }

}

猜你喜欢

转载自blog.csdn.net/hechaojie_com/article/details/82731206