Re: nginx+Apache 404

Alex, the Marrch Ca'at marrch.caat gmail.com
11 11:37:39 MSK 2009


            
,     .   nginx- 
    .

 .

2009/12/10 Bambino <nginx-forum at nginx.us>:
>     VDS,    nginx+Apache (  ISP Manager).   .htaccess   ErrorDocument 404 /404/. URI /404/  RewriteRule   page.php,     ,       -.  ...   404  ,     ,        (        404   ,    ,    "").     nginx     ,  , !
>  Apache  nginx. .
>
>
> server {
>    listen 11.222.333.4:80;
>    server_name store.net www.store.net;
>    rewrite>^(/manager/.*)$>https://$host$1>permanent;
>    location ~* ^/(webstat/|awstats|webmail/|myadmin/|manimg/) {
>        proxy_pass http://11.222.333.4:8080;
>        proxy_redirect http://store.net:8080/ /;
>        proxy_set_header Host $host;
>        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_
>        proxy_set_header X-Real-IP $remote_addr;
>    }
>    location / {
>        proxy_pass http://11.222.333.4:8080;
>        proxy_redirect http://store.net:8080/ /;
>        proxy_set_header Host $host;
>        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_
>        proxy_set_header X-Real-IP $remote_addr;
>    }
>    location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|
>        root /home/user/www/store.net;
>        access_log /var/www/logs/store.net.access.log;
>        error_page 404 = @fallback;
>    }
>    location @fallback {
>        proxy_pass http://11.222.333.4:8080;
>        proxy_set_header Host $host;
>        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_
>        proxy_set_header X-Real-IP $remote_addr;
>    }
> }
>
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?21,29388,29388#msg-29388
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
>


nginx-ru