移出/etc/nginx/conf.d/目录下默认的default.conf文件
vim /etc/nginx/conf.d/server.conf
server {
listen 80;
location / {
proxy_pass http://127.0.0.1:8080;
}
}
移出/etc/nginx/conf.d/目录下默认的default.conf文件
vim /etc/nginx/conf.d/server.conf
server {
listen 80;
location / {
proxy_pass http://127.0.0.1:8080;
}
}
本文标题:nginx端口转发
本文链接:https://www.haomeiwen.com/subject/uixqtftx.html
网友评论