Welcome! Log In Create A New Profile

Advanced

Proxy_Pass & proxy_set_header problem

April 19, 2012 07:51AM
I am trying to get a CMS (Liferay), a desktop application (Liferay Sync) and WebDav to all work behind a Nginx reverse proxy and can't quite get all 3 working although they all use the same domain. The following code works BUT the only problem is that webpages that are returned contain links to http://10.x.x.205:8080 If I put in a "proxy_set_header Host $host" then the webpage links are correct and WebDav works but "Liferay Sync" stops working.

server {
listen 80;
server_name liferay.mydomain.com;
location / {
# proxy_set_header Host $host;
proxy_pass http://10.x.x.205:8080;
}
}

I think this is a HTTP header issue as I have tried passing all the headers that I can find with "proxy_pass_header" and but I can't see why the LiferaySync app isn't working.

Can anyone help ?

Cheers
Keith
Subject Author Posted

Proxy_Pass & proxy_set_header problem

keeef April 19, 2012 07:51AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 308
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready