假设将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
原创文章,作者:jamestackk,如若转载,请注明出处:https://blog.ytso.com/tech/aiops/267992.html