Subs_filter /wp-content/plugins/ /wp-content/plugins/ Subs_filter /wp-content/themes/ /wp-content/themes/ Subs_filter /wp-content/uploads/ /wp-content/uploads/ Check your install, and check it's compatible with the version of PHP you're using. # The location of access and error logs (symlinked to /var/Įrror_log /var/log/nginx/ Server_name # and redirect to the non-www host (declared below) # don't forget to tell on which port this server listens Gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript įastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:800m inactive=4h įastcgi_cache_key "$scheme$request_method$host$request_uri" įastcgi_cache_use_stale error timeout invalid_header http_500 įastcgi_ignore_headers Cache-Control Expires Set-Cookie Īdd_header X-Cache $upstream_cache_status Īdd_header X-Content-Type-Options nosniff Īdd_header X-XSS-Protection "1 mode=block" Obviously in production this block is segmented in several files but for the purpose of this question I paste it in one block. But it is obvious that the above 301 response is notĬoming from CloudFlare because they set easily recognizable headers out /usr/local/etc/nginx/ssl/localhost.crt openssl req -new -newkey rsa:4096. Since the server is behind CloudFlare I've purged the whole cache on Nginx, PHP-FPM, MySQL and phpMyAdmin on OS X.Since I'm using FastCGI Caching I've purged the whole FastCGI Nginx.I didn't forget to restart Nginx and I even rebooted the server.I've checked my iptables and there are no PREROUTING chains of any kind.So I'm really confused how is this possible when there's no redirection rule at all. In addition I pinged the IP from third party sources and they confirm that the 301 redirect is there. I'm aware that my browser had already hard-cached that redirection and I won't see the change so I used curl -I xx.xx.xx.xxx via SSH to see the response, where xx.xx.xx.xxx is the server's Public IP: HTTP/1.1 301 Moved PermanentlyĪs you can see the redirection is still there. However I decided to remove it but the redirection doesn't go away. I was using this block for redirecting the website's IP to the actual URL: # IP to domain redirect
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |