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
Regardless of the urlBase settings, reverse proxy access thru NGINX does not work with domain/subfolder #854
Comments
I don't have a proper nginx config at hand. If you want to set up manually, I would look at the sample nginx configuration in the docker folder of this repo. If you use nginx proxy manager, setting this should work: And on the Advanced tab:
|
Hello @bpatrik, Thank you for your help. I have continued my tests and I'm not sure that is a issue from nginx. Explanation of tests: I set that in the config.json:
When I try to access to pigallery2 through my local network (then without nginx) at the address : 192.168.1.14:3900/photos, I get: And if I try to access at the address without /photos in the URL, I get that ("loading" continuously): I don't know the right config for apiPath but I tested to put /photos/pgapi with the same result. So it seems to me that is a bad redirection due to a misunderstanding of the urlBase parameter... What is your opinion about that ? |
To make it work you need two thing:
you do not really need to change the apipath (at all) |
Hi @bpatrik Thank you for your help. I'm going to detail exactly my config:
So, maybe I didn't understand something in your explanation but to me:
From your point of vue, is it relevant to test with the docker version of pigallery2 or it will be the same behavior?
Thank you. |
Somebody can help me please ? |
Hi,
and: Then I was opening http://mydoman.com/urltest This is how the nginx setting works on nginx proxy manager: Which generated this file:
|
Hello,
I have Nginx as front end in my server (based on raspberry pi).
Several services work well with reverse proxy configured in Nginx with subfolder in URL :
https://mydomain.com/app1
https://mydomain.com/app2
So I would like to do the same thing with pigallery2 but it fails.
Here is my conf on nginx side:
and I set config.json like that:
( I also try without / at the beginning, with / at the end, no effect)
The result in Firefox for https://mydomain.com/photos:
I already posted about this behavior : #388 but I couldn't go deeper after that.
Today, I restart this discussion in order to try to fix this issue.
I can't know if the failure comes from nginx or pigallery2 configuration (config.json)
Environment:
Can I have some help on this topic?
Here is the debug console when I try to access to the server:
Let me know what kind of test I can perform to help the investigation.
Thank you in advance.
The text was updated successfully, but these errors were encountered: