I have a vanilla installation of nginx on Ubuntu 14.04 and I am trying to run a reverse proxy in front of a Jenkins installation (running on port 8080 as bellow).
I created a conf file to be included in the default configuration and it's picking the new location fine, but it returns a 404 instead of serving the content of the application.
What am I missing? It looks exactly as in the nginx admin guide.
# /etc/nginx/conf.d/reverse_proxy.conf
server {
listen 80 default_server;
server_name this_server_name;
location /jenkins {
proxy_pass http://localhost:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
ps (Edit): The 404 is being returned by Jenkins, not nginx.
nginxconfiguration?