nginx 监听端口转发
程序员文章站
2022-05-27 23:41:49
...
server {
listen 82 default_server;
listen [::]:82 default_server;
root /var/www/test/trie/demo/;
# Add index.php to the list if you are using PHP
location / {
proxy_pass http://127.0.0.1:8082;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
}
上一篇: iptables端口转发
下一篇: nginx配置默认跳转