Re[2]: Использование переменных в proxy_pass

Dmitry Titov dimit at digin.ru
Sat Aug 12 04:10:40 MSD 2006


DY> Попробуй так.
DY> Верно ли это с других кочек зрения - поправят если что ;)
DY>  
>>   access_log   /home/httpd/vhosts/domain.ru/logs/nginx.access.log;
>> 
>>   location / {
DY> +      rewrite (^/.*) /$var_name$1 break;

DY> -     proxy_pass        http://127.0.0.1:80/$var_name/;
DY> +     proxy_pass        http://127.0.0.1;

>>     proxy_redirect    default;
>>   }
>> }

Спасибо, так сработало :)


-------
Dmitry Titov, dimit at digin.ru







More information about the nginx-ru mailing list