gpt4 book ai didi

linux - nginx: [emerg] 无效参数

转载 作者:太空宇宙 更新时间:2023-11-04 12:42:29 24 4
gpt4 key购买 nike

我正在为 RHEL 7 中的反向代理配置 nginx,这是我的配置。

server {
listen 8080;
server_name localhost.com;

location / {
proxy_pass https://server01.com:9443/landscaper;
root /usr/share/nginx/html;
proxy_redirect off;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header Accept-Encoding "";
}

我已经重启了nginx服务。但即使在那之后,代理也不适合我。说“网页不可用”

请帮忙。
TIA。

最佳答案

防火墙阻止了端口 8080。所以我将端口更改为 443 并尝试重新启动 nginx 服务。它现在正在工作。

关于linux - nginx: [emerg] 无效参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39721632/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com