51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

nginx 80 标准配置

nginx 80 标准配置

server {
       	listen 80;
	server_name  music.baimeidashu.com;

        location / {
          proxy_pass http://localhost:8010;
          proxy_set_header Host $proxy_host;
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          }
  
        location /creation-web/ {  # Change this if you'd like to server your Gradio app on a different path
          proxy_pass http://127.0.0.1:9898/; # Change this if your Gradio app will be running on a different port
          proxy_buffering off;
          proxy_redirect off;
          proxy_http_version 1.1;
          proxy_set_header Upgrade $http_upgrade;
          proxy_set_header Connection "upgrade";
          proxy_set_header Host $host;
          proxy_set_header X-Forwarded-Host $host;
          proxy_set_header X-Forwarded-Proto $scheme;
    }




     access_log  /var/log/nginx/music.baimeidashu.com.log ; 
     error_log  /var/log/nginx/music.baimeidashu.com.error.log;

       error_page 502 503 /50x.html;
       location = /50x.html {
          root /usr/share/nginx/html;
}
}
赞(7)
未经允许不得转载:工具盒子 » nginx 80 标准配置