ПРОЕКТЫ
АРХИВ
nginx-ru @sysoev.ru
СТАТЬИ
ПЕРСОНАЛЬНОЕ
ПРОГРАММЫ
ПИШИТЕПИСЬМА
server { listen 80 default; server_name mysite.com; root /my/doc/root; index index.html; access_log off; rewrite ^(.*)$ http://www.mysite.com$1 permanent; } server { listen 80; server_name www.mysite.com; root /my/doc/root; index index.html; ... }
server { listen 80 default; server_name www.mysite.com; root /my/doc/root; index index.html; access_log off; rewrite ^(.*)$ http://mysite.com$1 permanent; } server { listen 80; server_name mysite.com; root /my/doc/root; index index.html; ... }
rewrite ^(.*)$ http://mysite.com$1 permanent;
_______________________________________________ nginx-ru mailing list nginx-ru@xxxxxxxxx http://nginx.org/mailman/listinfo/nginx-ru
Copyright © Lexa Software, 1996-2009.