Hi all,
I'm trying to get Confluence (and others) to work with nginx. Confluence is a standalone tomcat that is running on 8082. I simply want to reverse proxy it to site.com/wiki
I have already a website running, so I tried something as simple as this:
location /wiki {
proxy_pass http://127.0.0.1:8082;
proxy_redirect off;
}
I then set up Confluence to run off site.com/wiki. Unfortunately, when I try accessing it from site.com/wiki, Confluence tries to do homepage.action but then give a 404 Not Found error. Which means that something is set up incorrectly.
Then I thought, well maybe the settings for the server somehow conflicting and I disabled the site that was running and made a new entry:
server {
listen 80;
server_name site.com;
root /usr/local/confluence/confluence;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location = / {
proxy_pass http://127.0.0.1:8082/;
proxy_redirect off;
}
}
Still no luck. Any ideas?