Unable to login with proxypass
António P. P. Almeida
appa at perusio.net
Wed Aug 1 11:18:06 UTC 2012
On 1 Ago 2012 12h20 CEST, pcgeopc at gmail.com wrote:
> Dear Sir
>
> We need to proxy pass an url in which my.domain.com need to get
> drupal.apps.server.com. We configured rewrite and is working fine.
>
> Then we configured proxypass and while accessing 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;
> location /{
> proxy_pass http://drupal.get 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;
> }
> }
Have you tried to use proxy_redirect?
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_redirect
E.g.:
proxy_redirect http://drupal.apps.server.com/ http://mydomain.com/;
What do the logs say?
--- appa
More information about the nginx
mailing list