Welcome! Log In Create A New Profile

Advanced

Re: Простое перенаправление

June 08, 2010 01:22AM
2010/6/8 artdanilov <nginx-forum@nginx.us>:
> location / {
> proxy_pass 127.0.0.1:80;
> proxy_set_header Host $host;
> }
>
> location ~* \. (jpg|gif|png) {
> root /home/.....;
+ try_files $uri @apache;
> }
+ location @apache {
+ proxy_pass http://127.0.0.1; # надо обратить внимание на
отсутсвие слеша в конце.
+ }

--
Boris Dolgov.

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

Простое перенаправление

artdanilov June 07, 2010 11:29PM

Re: Простое перенаправление

Boris Dolgov June 08, 2010 01:22AM

Re: Простое перенаправление

artdanilov June 08, 2010 01:40AM

Re: Простое перенаправление

artdanilov June 08, 2010 02:27AM

Re: Простое перенаправление

Andrew Kopeyko June 08, 2010 01:58AM

Re: Простое перенаправление

Boris Dolgov June 08, 2010 02:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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