nginx proxing not working properly

view full story

http://serverfault.com – I have hosted different drupal sites in an Ubuntu server. Nginx is running as a webserver in this server.All sites are working fine. For security reasons i need to enable a Nginx proxy server ahead of the above server. Configured proxy. The following is the configuration file that i used for proxying . The result of this is when i access the url www.drupal.com it redirect to http://www.drupalsite.com. server { listen 80; server_name www.drupal.com; location / { proxy_set_header Host $proxy_host; proxy_set_header Connection Close; proxy_pass http://www.drupalsite.com; (HowTos)