windows 2008 nginx 尝试配置两个站点,始终只有一个正常运行,本机开发环境测试没问题,不知何故,求助!
http { include mime.types; default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_min_length 1m;
gzip_comp_level 3;
gzip_types text/plain application/javascript application/x-javascript text/javascript text/xml text/css;
client_max_body_size 512m;
upstream leoserver {
server localhost:1058;
server localhost:1059;
}
server {
listen 80;
server_name web1.com;
location /api {
proxy_pass http://leoserver;
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
}
location /Service/webService.asmx {
proxy_pass http://leoserver;
}
}
server {
listen 80;
server_name web2.com;
root d:/web2;
location /api {
proxy_pass http://localhost:9999;
}
location /Service/webService.asmx {
proxy_pass http://localhost:9999;
}
}
}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。