Re: Не работает merge_slashes off при редиректах

SaveFrom.net savefrom на gmail.com
Вт Янв 24 19:06:18 UTC 2012


Добрый вечер,

Письмо не заметили или это не бага?

15 января 2012 г. 19:35 пользователь SaveFrom.net <savefrom at gmail.com>написал:

> Здравствуйте,
>
> Запрос    http://sfrom.net/http://bar
>
> Ответ      http://savefrom.net/http:/bar
>
> Ожидали http://savefrom.net/http://bar
> (пропал слеш в uri)
>
> Конфиг
> server {
>  listen xxx;
> server_name sfrom.net www.sfrom.net;
> merge_slashes off;
> rewrite '^\/https?:' 'http://savefrom.net$uri?foo' permanent;
> rewrite ^ 'http://savefrom.net/http:/$uri?foo' permanent;
> }
>
>
> Linux  2.6.18-238.1.1.1.el5
>
> nginx: nginx version: nginx/1.1.2
> nginx: built by gcc 4.1.2 20080704 (Red Hat 4.1.2-50)
> nginx: TLS SNI support disabled
> nginx: configure arguments: --conf-path=/etc/nginx/nginx.conf
> --sbin-path=/usr/sbin/nginx --error-log-path=/var/log/nginx/error.log
> --http-log-path=/var/log/nginx/access.log
> --http-client-body-temp-path=/var/spool/nginx/tmp/client
> --http-proxy-temp-path=/var/spool/nginx/tmp/proxy
> --http-fastcgi-temp-path=/var/spool/nginx/tmp/fastcgi
> --pid-path=/var/run/nginx.pid --user=nginx --group=nginx
> --with-http_ssl_module --with-http_gzip_static_module
> --with-http_stub_status_module
>
> --
> С уважением, Антон
>



-- 
С уважением, SaveFrom.net.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-ru/attachments/20120125/dc270986/attachment.html>


Подробная информация о списке рассылки nginx-ru