本站Nginx配置文件

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

评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注

点击更换