Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx Reverse Proxy Configuration #13

Open
baba-dev opened this issue Nov 15, 2022 · 2 comments
Open

Nginx Reverse Proxy Configuration #13

baba-dev opened this issue Nov 15, 2022 · 2 comments

Comments

@baba-dev
Copy link

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 !

@phanirithvij
Copy link

phanirithvij commented Nov 18, 2022

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.

@cvc90
Copy link

cvc90 commented Feb 18, 2023

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants