本地nginx代理转发
作者:互联网
假设将8080端口转发到443
1.查询nginx的路径
ps -aux|frep nginx
2.在apps文件下建一个文件名为XXX.conf
server { listen 8080; server_name 192.168.80.11; #access_log logs/host.access.log main; location / { proxy_pass http://192.168.80.11:443/ //这里修改 } }
3.重启nginx
./nginx -s reload
标签:8080,log,443,192.168,access,nginx,本地,转发 来源: https://www.cnblogs.com/lem985/p/16374848.html