Nginx as Reverse proxy
jacppe
nginx-forum at nginx.us
Fri Apr 8 04:05:15 MSD 2011
Hi all!
I'm configuring nginx as http reverse proxy. I have another Windows
server, in this server I'm hosting an application using IIS.
I'm trying to configure this conditions:
- When enter to apps.elcomercio.com redirects to
apps.elcomercio.com/suscriptores
- When enter to apps.elcomercio.com/suscriptores redirect to IIS server,
the complete URL is:
http://apps.elcomercio.com/suscriptores/macro/suscriptores_diario.asp
My configuration is:
server {
listen 80;
server_name apps.elcomercio.com;
location ~* / {
proxy_pass http://suscriptor;
include /etc/nginx/proxy.conf;
proxy_cache two;
}
location /suscriptores {
rewrite ^
http://apps.elcomercio.com/suscriptores/macro/suscriptores_diario.asp
permanent;
}
}
I can resolve apps.elcomercio.com and when I use elinks I can see the
webpage.
Thanks a lot for your support.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,189317,189317#msg-189317
More information about the nginx
mailing list