Nginx reverse proxy subdirectory rewrites for sourcegraph
问题 I'm trying to have a self hosted sourcegraph server being served on a subdirectory of my domain using a reverse proxy to add an SSL cert. The target is to have http://example.org/source serve the sourcegraph server My rewrites and reverse proxy look like this: location /source { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Scheme $scheme; rewrite ^/source/?(.*) /$1 break; proxy_pass http:/