nginx报错500-地址命名不能为数字的坑
新加接口时,新建Nginx一直报500
后查询原因,是set $xxxUrl的时候命名为111url的数字,把数字改成字母就可以了
listen 80; server_name lo.xxx.xxxx.com; #charset koi8-r; #access_log logs/host.access.log main; set $passUrl http://192.xxxx; location / { root C:\Users\zhuangcui\AppData\Local\.fis-xxxx-tmp\www; index index.html; autoindex on; autoindex_exact_size off; autoindex_localtime on; } location ~ ^/exxx { proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass $passUrl; } location ~ ^/exxxx { proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass $passUrl; }