Welcome! Log In Create A New Profile

Advanced

301 редирект работает не всегда?

Андрей Василишин
April 20, 2017 04:28PM
Здравствуйте!
Есть такая проблема, настроен 301 редирект с кучи доменов на основной,
конфиг ниже. Все работает, в логах помино 301 редкие 400 и 408 ответы,
но вот счетчик liveinternet, яндекс.вэбмастер все же показывает пару
десятков хостов, которые по идее должны были быть отредирекчены на
другой домен и их счетчики банально не должны были загрузится.
Кто виноват и что делать, есть у кого-нибудь идеи?

server {
listen 80;
server_name www.site.to site.cc www.site.cc www.site.tv site.tv;
access_log /var/log/nginx/www.site.access.log main;
error_log /var/log/nginx/www.site.error.log warn;
rewrite ^(.*)$ http://site.to$request_uri permanent;
}

# nginx -V
nginx version: nginx/1.9.9
built by gcc 4.7.2 (Debian 4.7.2-5)
built with OpenSSL 1.0.1e 11 Feb 2013 (running with OpenSSL 1.0.1t 3
May 2016)
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx
--conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid
--lock-path=/var/run/nginx.lock
--http-client-body-temp-path=/var/cache/nginx/client_temp
--http-proxy-temp-path=/var/cache/nginx/proxy_temp
--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp
--http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp
--http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=www-data
--group=www-data --with-http_ssl_module --with-http_realip_module
--with-http_addition_module --with-http_sub_module
--with-http_flv_module --with-http_mp4_module --with-http_geoip_module
--with-http_gunzip_module --with-http_gzip_static_module
--with-http_random_index_module --with-http_secure_link_module
--with-http_stub_status_module --with-http_auth_request_module
--with-threads --with-stream --with-stream_ssl_module
--with-http_slice_module --with-file-aio --with-http_v2_module
--with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4
-Wformat -Werror=format-security' --with-ld-opt=-Wl,-z,relro --with-ipv6
--with-debug
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

301 редирект работает не всегда?

Андрей Василишин April 20, 2017 04:28PM

Re: 301 редирект работает не всегда?

Gena Makhomed April 20, 2017 04:48PM

Re: 301 редирект работает не всегда?

Андрей Василишин April 20, 2017 05:08PM

Re: 301 редирект работает не всегда?

Evgeniy Berdnikov April 20, 2017 05:02PM

Re: 301 редирект работает не всегда?

Андрей Василишин April 20, 2017 05:10PM

Re: 301 редирект работает не всегда?

Илья Шипицин April 20, 2017 06:16PM

Re: 301 редирект работает не всегда?

Андрей Василишин April 21, 2017 01:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 175
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