Welcome! Log In Create A New Profile

Advanced

Nginx as Reverse proxy

April 07, 2011 08:05PM
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.
Subject Author Posted

Nginx as Reverse proxy

jacppe April 07, 2011 08:05PM

Re: Nginx as Reverse proxy

jacppe April 08, 2011 02:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 265
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready