ПРОЕКТЫ 


  АРХИВ 


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: Как понимать термин URI в документации?


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Как понимать термин URI в документации?
  • From: Vladislav <tvword@xxxxxxxxx>
  • Date: Sun, 10 Jan 2010 01:15:41 +0200
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=mb+uzLlzxU/8IC2NFBMiW0rUCBNt54gu41gN5R5xFgI=; b=mqQyvmlNp0eQXjWKXTd9aKQ/csrqgHJOwKfcCuTMaLVhR/HM2rYcPDOUljYFWTBYt6 kX3uGDe6dnNvi9hceGNd6z48ftEWYS034etViryIrKHAX70qdAFilqCRsEdIQcoTyI/i WnOab0cNhObv5oZR8egxMhhcTg9ZodLr+ek4o=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=hkGNdTwXNi92sLPpMhq+N/8KbUmUiNG8F4wkhy/+6nVgZJn/JiUAbP9fbN9HtqH4H6 +IFpcO0OIILMWdy06/U990Jcv/HxTGnwD+kmQnL0qvTkFDL+uYzb0hOYTnp3UR+sHDKw uCApf377ouU9waqnNODbf7aCuEWstsHHJHwVo=
  • In-reply-to: <8b6ed1541001091323j46ac4e65q78bbce3d5c1c87a0@xxxxxxxxxxxxxx>
  • References: <4B48EB2B.8020102@xxxxxxxxx> <4B48EC37.1070006@xxxxxxxxx> <8b6ed1541001091323j46ac4e65q78bbce3d5c1c87a0@xxxxxxxxxxxxxx>

Алексей Сундуков пишет:
10 января 2010 г. 0:51 пользователь Vladislav <tvword@xxxxxxxxx> написал:
  
Если ^(.*)$ = http://www.site.com/foo?param
то, что тогда получим на выходе?

А первый пример, как уже точно меня поправил Игорь, преобразуется в /msie/foo
    
Если в /msie/foo, тогда объясните пожалуйста, как работает пример ниже ???!!!
server {
    #общая конфигурация для сервера
    listen mysite.com:80;
    server_name mysite.com *.mysite.com;
...
    # редиректим http://www.mydomain.nl/foo => http://mydomain.nl/foo
    if ($host ~* www\.(.*)) {
       set $host_without_www $1;
       rewrite ^(.*)$ http://$host_without_www$1 permanent;
    }
}

Пример взял здесь - http://denis.in.ua/301-redirect-with-nginx.htm .

Здесь, по идее, должны теряться query string? Верно? Или я че-то не понимаю?
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.