Welcome! Log In Create A New Profile

Advanced

http sub module and variables

February 17, 2012 12:44AM
Добрый день!
Подскажите плз - использую директиву sub_filter в контексте server. Работает она отлично, но если я пытаюсь использовать переменную $server_name sub_filter не выполняется. Пример такой:
sub_filter http://$server_name/ "/";
sub_filer_once off;

Переменная объявлена выше:
server_name nginx.org www.nginx.org;

ps требуется переписать http://nginx.org/ на "/"

Премного благодарен за ответы:)

--
Respectfully,
Stanislav Putrya
System administrator
Fotostrana.Ru.
ICQ IM: 328585847
Jabber-GoogleTalk: root.vagner
mob. phone: +79525600664
email: putrya@playform.com
email: vagner@bsdway.ru
email: root.vagner@gmail.com

----------------------------------------
( ) ASCII ribbon campaign
X - against HTML, vCards and
/ \ - proprietary attachments in e-mail
Subject Author Posted

http sub module and variables

vagner February 17, 2012 12:44AM

Re: http sub module and variables

Maxim Dounin February 17, 2012 03:02AM

Re: http sub module and variables

vagner February 17, 2012 08:07AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 60
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready