# Proxy\_Pass & proxy\_set\_header problem

**URL:** <https://www.ruby-forum.com/t/proxy-pass-proxy-set-header-problem/219049>\
**Category:** NGINX\
**Created:** [April 19, 2012, 1:52pm UTC](https://www.ruby-forum.com/t/proxy-pass-proxy-set-header-problem/219049 "2012-04-19T13:52:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [April 19, 2012, 1:52pm UTC](https://www.ruby-forum.com/t/proxy-pass-proxy-set-header-problem/219049/1 "2012-04-19T13:52:02Z")

</div>

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](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

Posted at Nginx Forum:

> **[Proxy\_Pass & proxy\_set\_header problem](https://forum.nginx.org/read.php?2,225506,225506#msg-225506)**
>
> 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...
