Welcome! Log In Create A New Profile

Advanced

Re: login.html

June 01, 2010 01:56PM
On Tue, Jun 01, 2010 at 11:17:32AM -0500, Scott Behrens wrote:

> Hello,
>
> I am having an issue with Reverse Proxy to a site that uses login.html as
> it's index page. I went ahead and used this as my index:
>
> location / {
> proxy_pass http://10.10.1.158:9080/;
> index login.html;
>
> When I navigate to the reverse proxy if I can only reach the login page with
> an absolute url:
>
> http://myproxy.com/login.html
>
> instead of:
>
> http://myproxy.com
>
> Any suggestions on how to fix this?

Two ways:

1) configure backend to handle "/" as "/login.html"

2) or proxy only "/" to "/login.html":

location = / {
proxy_pass http://10.10.1.158:9080/login.html;
}

location / {
proxy_pass http://10.10.1.158:9080;
}


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

login.html

Scott Behrens June 01, 2010 12:26PM

Re: login.html

Jeff Waugh June 01, 2010 12:34PM

Re: login.html

Igor Sysoev June 01, 2010 01:56PM

Re: login.html

sbehrens June 02, 2010 09:31AM

Re: login.html

sbehrens June 02, 2010 09:49AM

Re: login.html

Igor Sysoev June 02, 2010 10:00AM

Re: login.html

Igor Sysoev June 02, 2010 10:00AM

Re: login.html

sbehrens June 02, 2010 10:26AM

Re: login.html

Igor Sysoev June 02, 2010 11:16AM

Re: login.html

sbehrens June 02, 2010 03:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 306
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