-
[北京|结业弟子]JAVA-铁木儿0编辑于2018-10-19
-
[西安|结业弟子]JAVA-鲁伯良0
server {
listen 80;
server_name 139.199.13.81;
#charset koi8-r;
location /static/ {
root /usr/local/nginx/Tiles;
}
access_log logs/access.log main;
location / {
root html;
index index.html index.htm;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://tomcats;
}
这部分要放在http块里面.你放到外面了......肯定报错启动不了
编辑于2018-11-24
- 去第 页