-
Notifications
You must be signed in to change notification settings - Fork 75
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
Container behind reverse proxy forwards to localhost #127
Comments
Hi, have you tried also setting the PUBLIC_URL variable to |
I didn't before as the description said something about scripts (Public URL for public scripts) so I wasn't sure. |
Ok, another thing could be the
You can find the apache-example.conf in this repo. |
Not sure how an alias should help me as it's already located at the document root. |
Hi, I just added an example on a new branch: https://github.com/martialblog/docker-limesurvey/tree/docs/apache-proxy It is somehwat working, however we run into an old issue in which the application doesn't know it's behind a proxy: #49 when you call the I'll try some more the coming days, if you have any progress let me know. |
Thanks. Since you said it only affects the admin area, I went ahead, with that inconvenience and created the small survey I needed just now. Participating in the survey works without that issue. Would be great tho if it'd fully work in the future. Thanks for your work. |
Hi everyone! The solution I found was adding the HTTP_HOST fastcgi_param in the nginx.conf file that the docker-compose service uses.
Hopefully this will be helpful. |
@jimartinezabadias You hint was on point! In Apache the Thanks a lot! This issue has been open for a while. |
I am running in the exact same problem. Could you post your complete (sanitized) nginx config? |
@Kartoffelhumpen I updated the nginx.conf in the examples folder. Can you try this one and see if it works? |
Unfortunately this does not work at all. I'm getting a 500 internal Server Error
|
@Kartoffelhumpen I just tried to recreate issue with the As far as I can tell this works as expected. Can you give some details on how you run the Container and what the Reverse Proxy config looks like? |
I tried again all morning and still got the same result. I also used fpm.alpine version. Compose file:
Nginx Config:
Some result: https://survey.my.example.com works fine. Opening https://survey.my.example.com/admin redirects to http://limesurvey/admin/ |
I used your nginx.conf (without SSL) and the docker-compose.fpm.alpine.yml from the repo. survey.my.example.com/admin worked alright. Maybe there's some old Containers/Volumes or config lying around and being used? Maybe exec into the Containers and see what's files are being used. |
I also tried again with a completely new installation. But: when I use the complete URL https://survey.my.example.com/index.php/admin/authentication/sa/login everything works as expected and I can log in without any problems. After logging in the redirect for https://survey.my.example.com/admin also works. In short: works for me |
Interesting. Thanks for the feedback |
Since we now some more insight on this issue and have some working examples I will close this issue. Thanks everyone for the help and for your feedback! |
I've got the container running with
-p 8084:8080
.Traffic goes through an apache2 web server which handles ssl.
This works initially but at times I get forwarded to
https://localhost:8084/
instead of my domain.Editing the url, replacing localhost:8084 with the domain gets me to that site but on some actions I get redirected again to localhost:8084
BASE_URL
is set tohttps://survey.<my.domain>
Apache2 config:
What am I doing wrong?
The text was updated successfully, but these errors were encountered: