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

Vladimir Getmanshchuk vladget at openfilm.com
Sun Nov 15 13:50:46 MSK 2009


# 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 at openfilm.com
Skype: vladimir.getmanshchuk





More information about the nginx-ru mailing list