Discuss / Python / nginx中配置二级目录

nginx中配置二级目录

Topic source

zeronbo

#1 Created at ... [Delete] [Delete and Lock User]

老师你好,如果我想将location / { 配置为 location /test {应该要如何配置呢?不知道Gunicorn 有没有这样的参数配置,还是说应该通过nginx配置

# 动态请求转发到9000端口:
    location / {
        proxy_pass       http://127.0.0.1:9000;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

zeronbo

#2 Created at ... [Delete] [Delete and Lock User]

问题还是解决了


  • 1

Reply