Windows中的Nginx 502错误网关

这是我的配置文件nginx,我正在使用Windows。我已经尝试了很多,但是喜欢这个错误,它表明我尝试过的网关错误可能可以解决,但它不起作用,请帮助。我不知道我在哪里做错了,但是最近20个小时我一直在努力。.我是nginx的新手,无法解决这个错误,请给我一些解决方案。

events {
    worker_connections  1024;
}
# CRM
http
{
server {

    listen 80;
    listen [::]:80;

    server_name localhost;

    root   C:\bajwa-crm; # Replace with your local path
    index  index.php index.html index.htm;

    location / {
        try_files $uri $uri/ /index.php?q=$uri&$args;
        }
    }
    location ~ \.php$ {
    fastcgi_pass   127.0.0.1:9123;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    include        fastcgi_params;
}
}

## Main website,same comments apply as above
server {
    listen 8080;
    listen [::]:8080;

    server_name localhost;

    root   C:\bajwa-website; # path to local dir
    index  index.php index.html index.htm;

    location / {
    try_files $uri $uri/ /index.php?q=$uri&$args;
        }
    }
    location ~ \.php$ {
    fastcgi_pass   127.0.0.1:9123;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    include        fastcgi_params;
}
}
}
mmaiyy02 回答:Windows中的Nginx 502错误网关

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3124296.html

大家都在问