欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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;
        }
}