Nginx

= Debug rewrite rules = Add these rules in your server block and you will get information about all redirection attempts for that server block. error_log   /var/log/file.log notice; rewrite_log on;