Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: captures in regex location



On Thu, Mar 05, 2009 at 12:14:55PM +0200, Andrew Sitnikov wrote:

> >>     ݣ   server_name?
> IS>     server_name.
>   ?

, - :

     server {
         listen  8000;
         server_name  ~^(?:www\.)?(.+)$;

         location / {
             root   /path/to/$1;
         }
     }


-- 
 
http://sysoev.ru



 




Copyright © Lexa Software, 1996-2009.