因为内网问题,映射到外网出现无法访问,其他IP的服务可以使用,就这台Debian上的nginx不能访问,于是重装,卸载安装apache2依然如故,最后用群晖反代理才解脱,过程中把nginx的配置给弄坏了,导致404错误,修复后又403。判断就是rewrite的问题,最终把server段更改为以下配置得以解脱 ```sh listen 443; listen [::]:443; root /var/www/your wordpress content; index index.php index.html index.htm index.nginx-debian.html; server_name domain or IP address; location / { try_files $uri $uri/ /index.php$is_args$args; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.3-fpm.sock; } ``` Last modification:March 25, 2020 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 0 If you think my article is useful to you, please feel free to appreciate