Welcome! Log In Create A New Profile

Advanced

Re: proxy pass if not found on local

Maxim Dounin
August 26, 2010 09:14AM
Hello!

On Thu, Aug 26, 2010 at 07:57:05AM -0400, stingreen wrote:

> Hello,
> Well, the subject says it all. Is it possible ? I tried something like
> the following without success. Check the htdocs first, if not found,
> look under somedomain.com.
> Thanks in advance,
>
>
> location / {
>
> index index.html index.htm;
> root /foo/bar/htdocs;
> proxy_pass http://somedomain.com/;
> }

location / {
index ...
root ...
try_files $uri $uri/ @fallback;
}

location @fallback {
proxy_pass http://somedomain.com;
}

Maxim Dounin

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

proxy pass if not found on local

stingreen August 26, 2010 07:57AM

Re: proxy pass if not found on local

Maxim Dounin August 26, 2010 09:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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