Welcome! Log In Create A New Profile

Advanced

Re: try_files random

Alexandr Gomoliako
July 23, 2012 01:14PM
> my $root = $r->variable("document_root"); - это зачем? что
> вместо document_root указывать?

Это позволяет получить полный путь к корневой директори (которая root
/raid), ничего менять не надо.

> в трай файлз у меня сейчас такое
> location ~ ^/media(.+)$ {
> root /raid;
>
> try_files $dice$1
>
>
> как с этим быть , перл надо
> модифицировать под такой локейшен?

Нужно внести $1 в перл и убрать из try_files.
Замени my $uri = ... на

my ($uri) = $r->uri =~ m"^/media(.+)$";

Теперь в try_files останется только

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

try_files random

arty777 July 20, 2012 11:36AM

Re: try_files random

Andrey Repin July 20, 2012 12:52PM

Re: try_files random

arty777 July 20, 2012 02:08PM

Re: try_files random

arty777 July 20, 2012 03:40PM

Re: try_files random

arty777 July 21, 2012 11:25AM

Re: try_files random

arty777 July 21, 2012 02:21PM

Re: try_files random

arty777 July 23, 2012 08:46AM

Re: try_files random

arty777 July 23, 2012 08:48AM

Re: try_files random

arty777 July 23, 2012 10:22AM

Re: try_files random

arty777 July 23, 2012 12:43PM

Re: try_files random

arty777 July 23, 2012 01:28PM

Re: try_files random

arty777 July 23, 2012 01:51PM

Re: try_files random

arty777 July 23, 2012 03:22PM

Re: try_files random

Dmitry Y. Labutin July 20, 2012 02:38PM

Re: try_files random

Alexandr Gomoliako July 20, 2012 04:14PM

Re: try_files random

arty777 July 20, 2012 04:30PM

Re: try_files random

Alexandr Gomoliako July 20, 2012 05:16PM

Re: try_files random

Валентин Бартенев July 20, 2012 06:20PM

Re: try_files random

Валентин Бартенев July 20, 2012 06:24PM

Re: try_files random

Alexandr Gomoliako July 20, 2012 06:44PM

Re: try_files random

Alexandr Gomoliako July 21, 2012 12:48PM

Re: try_files random

Alexandr Gomoliako July 23, 2012 10:02AM

Re: try_files random

Alexandr Gomoliako July 23, 2012 11:00AM

Re: try_files random

Alexandr Gomoliako July 23, 2012 01:14PM

Re: try_files random

Alexandr Gomoliako July 23, 2012 01:42PM

Re: try_files random

Alexandr Gomoliako July 23, 2012 03:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 247
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready