Hello Igor, IS> Наверное, как-то так: IS> server { IS> listen 8000; IS> server_name ~^(?:www\.)?(.+)$; IS> location / { IS> root /path/to/$1; IS> } IS> } server { listen 8000; server_name ~^(?:www\.)?(.+)\.(.+)$; location /(.+) { } } http://www.foo.com/bar в location $1 и $2 будут ? $1 = bar $2 = com -- Best regards, Andrew mailto:sitnikov at infonet.ee