# Unable to login with proxypass

**URL:** <https://www.ruby-forum.com/t/unable-to-login-with-proxypass/221831>\
**Category:** NGINX\
**Created:** [August 1, 2012, 12:21pm UTC](https://www.ruby-forum.com/t/unable-to-login-with-proxypass/221831 "2012-08-01T12:21:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [August 1, 2012, 12:21pm UTC](https://www.ruby-forum.com/t/unable-to-login-with-proxypass/221831/1 "2012-08-01T12:21:42Z")

</div>

Dear Sir

We need to proxy pass an url in which [my.domain.com](http://my.domain.com) need to get  
[drupal.apps.server.com](http://drupal.apps.server.com). We configured rewrite and is working fine.

Then we configured proxypass and while accessing [my.domain.com](http://my.domain.com) we are  
getting the contents but we are unable to login to application (Drupal  
admin page). If you are accessing directly through  
drupal.apps.server.comwe are able to login and access the admin page.

Please see our configuration :  
server {  
listen 80;  
server\_name [my.domain.com](http://my.domain.com);  
location /{  
proxy\_pass [http://drupal.get](http://drupal.get) [apps.server.com/](http://apps.server.com/);  
proxy\_set\_header X-Forwarded-Host $host;  
proxy\_set\_header X-Forwarded-Server $host;  
proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for;  
}  
}

Can anyone please help us on it.

Thanks  
Geo

---

<div class="post-metadata">

**Author:** ![Geo\_P.C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b3f665/32.png) [@Geo\_P.C](https://www.ruby-forum.com/u/Geo_P.C)\
**Post date:** [August 1, 2012, 1:18pm UTC](https://www.ruby-forum.com/t/unable-to-login-with-proxypass/221831/2 "2012-08-01T13:18:58Z")

</div>

On 1 Ago 2012 12h20 CEST, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> }  
> Have you tried to use proxy\_redirect?

> **[Module ngx\_http\_proxy\_module](http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_redirect)**
>
> The ngx\_http\_proxy\_module module allows passing requests to another server.

E.g.:

proxy\_redirect [http://drupal.apps.server.com/](http://drupal.apps.server.com/) [http://mydomain.com/](http://mydomain.com/);

What do the logs say?  
— appa
