本站Nginx配置文件
2.04K 次檢視
server {
listen 80;
server_name *.smhsfp.com smhsfp.com;
location / {
proxy_pass http://127.0.0.1:8080/smhsfp/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
index index.html;
}
}
server {
listen 80;
server_name jf.jiucheng.org;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
index index.html;
}
}
server {
listen 80 default;
server_name _;
location / {
proxy_pass http://127.0.0.1:8082/wenwen-blog/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
index index.html;
}
}
server {
listen 80;
server_name static.jiucheng.org;
root "/usr/www/static";
location / {
index index.html;
#autoindex on;
}
}
评论