1
Good afternoon Personal,
I have a server with Docker swarm running on production, where my Nginx is playing the role of reverse proxy for Microservices. Everything is working perfectly, but I always come across the following problem with Nginx.
I need an application (like Jenkins or zanata for example) to fall at the root of my site, like below:
server {
server_name myapp.com
listen 80;
location / {
proxy_pass http://ipservidorjenkins/jenkins/;
}
}
above is just an example.. whenever I try to make a proxy_pass to an address that has URN (in the case of /Jenkins), failure, in Sso or gives 404, or in some cases does not load CSS and javascript.
Has anyone ever done this type of setup without having to add /Enkins to Location? The idea is to go to myapp.com and fall into http://ipservidorjenkins/Jenkins
Thank you!
Do you have any other
location
? When you define alocation
for caches settings, for example, theproxy_pass
ofroot
does not work. Ex: https://pastebin.com/0q8M773n– Valdeir Psr
Hello Valdeir, I only have this Location, in which case my root would be the proxy_pass to the Jenkins server. I would have to add the configuration you passed (pe?g|gif|css|js|png|webp) to the Jenkins server as well?
– mzibit
Hello! Can you pass the real IP of the client through this Nginx? That is, can inform the real IP for client application.
– mayconfsbrito