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.