nginx 监听端口转发

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

你可能感兴趣的:(linux)