
May 20, 2016
11:38 a.m.
Hi, I am trying to configure nginx to serve devpi on https://<myhost>/devpi/. The generated nginx configuration works fine on https://<myhost>. But since we are in a restricted network environment, all services have to share one nginx server instance. My current simplified configuration looks as follows: location /devpi/ { root /data/devpi/; proxy_pass http://localhost:4040; proxy_set_header X-outside-url $scheme://$host:$server_port; proxy_set_header X-Real-IP $remote_addr; expires -1; # no-cache } But I get infinite redirection from this configuration. Can you help me? Thanks! Best regards, Feischi