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;
}
}
}