Welcome! Log In Create A New Profile

Advanced

rewrite permanent возвращает 302

Vladimir Getmanshchuk
November 15, 2009 06:00AM
# nginx -V
nginx version: nginx/web1
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I
/usr/local/include' --with-ld-opt='-L /usr/local/lib'
--conf-path=/usr/local/etc/nginx/nginx.conf
--sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid
--error-log-path=/var/log/nginx-error.log --user=www --group=www
--with-debug --http-client-body-temp-path=/var/tmp/nginx/client_body_temp
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp
--http-log-path=/var/log/nginx-access.log --with-http_addition_module
--with-http_flv_module --with-http_gzip_static_module
--add-module=/usr/ports/www/nginx/work/nginx_mp4_streaming_public
--with-http_perl_module --with-http_realip_module
--with-http_secure_link_module --with-http_stub_status_module
--add-module=/usr/ports/www/nginx/work/nginx_upload_module-2.0.9
--add-module=/usr/ports/www/nginx/work/nginx-upload-progress-module
--with-pcre

nginx-0.7.63

rewrite ^/old_url/(.*) /new_url/ permanent;
rewrite ^/old_url/(.*)$ /new_url/$1? permanent;

в обоих случаях ответ 302 вместо обещанной 301.
научите что не так.

--
Yours sincerely,
Vladimir Getmanshchuk

Senior Unix System Administrator
Openfilm, LLC

Email: vladget@openfilm.com
Skype: vladimir.getmanshchuk
Subject Author Posted

rewrite permanent возвращает 302

Vladimir Getmanshchuk November 15, 2009 06:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 147
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready