之前的云服务器没续费被资源回收了, 刚好手头有个老 android, 于是安装了 linux deploy,打算让它发挥余热.
nginx 是这么配置的:
server { listen 368; listen [::]:368; server_name _; root /var/www/html/wordpress; index index.php index.html index.htm index.nginx-debian.html; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.3-fpm.sock; } }
现在是局域网环境下, 访问 368 端口是可以正常打开 wordpress 的.
使用 cpolar 做内网穿透 368 端口:
Tunnel Status online Account **** (Plan: Free) Version 2.92/2.96 Web Interface 127.0.0.1:4040 Forwarding https://24a00017.cpolar.cn -> http://localhost:368 Forwarding http://24a00017.cpolar.cn -> http://localhost:368 # Conn 0 Avg Conn Time 0.00ms
这时 使用外网链接 就无法打开 wordpres 了.
要如何修改才可以使得外网链接正常访问呢?
![]() | 1 ocleo1 2023-08-29 16:33:37 +08:00 ![]() |