doku icon indicating copy to clipboard operation
doku copied to clipboard

Nginx Reverse Proxy Configuration

Open baba-dev opened this issue 3 years ago • 2 comments

Hey, Can you shine some light as how we can reverse proxy doku running on docker via nginx (on a subpath, i.e /doku) I have tried the below config but it resolves to 404 :

location /doku { proxy_bind $server_addr; proxy_pass http://127.0.0.1:8127; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Script-Name /dockerdisk; }

Results in not all files being loaded :

image

Thanks in advance !

baba-dev avatar Nov 15 '22 20:11 baba-dev

I've been trying make doku work in Caddy reverse_proxy under a base path /doku but not sure how to proceed either. I guess a subdomain is the way to go for now.

As per this post by a caddy forum moderator it is best to use a subdomain if the service doesn't allow changing the base_url.

phanirithvij avatar Nov 18 '22 12:11 phanirithvij

Did you find any solution to be able to use subpath with nginx? I have the same problem and it can't be used via https either.

Hey, Can you shine some light as how we can reverse proxy doku running on docker via nginx (on a subpath, i.e /doku) I have tried the below config but it resolves to 404 :

location /doku { proxy_bind $server_addr; proxy_pass http://127.0.0.1:8127; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Script-Name /dockerdisk; }

Results in not all files being loaded :

image

Thanks in advance !

cvc90 avatar Feb 18 '23 15:02 cvc90