login.html
Igor Sysoev
igor at sysoev.ru
Tue Jun 1 21:50:40 MSD 2010
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/
More information about the nginx
mailing list