刘贵学博客

nginx 配置反向代理

站点配置如下:

/etc/nginx/sites-enabled# vi XXXX.conf
server {
    listen 80;
    server_name YOUR_DOMAIN.com;


    location / {
        proxy_pass http://127.0.0.1:8080;
    }
}