已解决 win下nginx配置问题
请问下windows环境下nginx怎么转发到访问项目,我直接通过127.0.0.1:8083能访问,通过域名就不行,如下是我配置的nginx。
禅道版本 12.4.4 源码包
操作系统 Windows Server 2008
客户端浏览器 IE9

提问者: 艾象科技罗朋 悬赏:8 日期: 2020-11-06 15:29:58 答案:1 点击:743

获取技术支持

QQ: 电话:
设置备注
答案列表
最佳答案
2020/11/06

可以参考下下面的核心配置


server {

    listen       80;
    server_name  localhost;
    location / {
        root   /var/www/zentaopms/www;
        try_files $uri $uri/ /index.php?$args;
        index  index.php index.html;
    }   

    
    location ~ \.php$ {
        root           /var/www/zentaopms/www;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_param  PATH_INFO $request_uri;
        include        fastcgi_params;
    }   
    
}