simple try_files not working
    Igor Sysoev 
    igor at sysoev.ru
       
    Thu Feb 18 12:14:36 MSK 2010
    
    
  
On Wed, Feb 17, 2010 at 06:40:30PM +0100, Rapsey wrote:
> What I want is for nginx to serve a file if it can (it exists), if not to
> proxy the request to another server.
> I'm using 0.8.33
> 
> server {
>         listen 8080 default;
>         server_name   ~^(www\.)?(?<domain>.+)$;
>         index index.html index.htm;
> 
>         if ($host ~* www\.(.*)) {
>           set $host_without_www $1;
>           rewrite ^(.*)$ http://$host_without_www$1 permanent;
>         }
http://nginx.org/en/docs/http/converting_rewrite_rules.html
-- 
Igor Sysoev
http://sysoev.ru/en/
    
    
More information about the nginx
mailing list