Welcome! Log In Create A New Profile


nginx config is duplicating directory structure

Posted by mikemeadeuk 
nginx config is duplicating directory structure
May 08, 2012 05:38PM
Hi Everyone,

I have installed nginx on a new centos server using fastcgi. I am having a little problem with the nginx config file.

When my site is trying to grab a css file for example:


It redirects to:


And therefore throws a 404 because it has somehow duplicated the directory structure.

I was wondering if anyone else had had a similar problem in the past and could share their wisdom? :-)



Edited 1 time(s). Last edit at 05/08/2012 05:40PM by mikemeadeuk.
Re: nginx config is duplicating directory structure
May 15, 2012 06:20PM
Further looking into this I can see in the error log:

2012/05/15 23:15:21 [notice] 7287#0: *1 rewritten data: "/index.php", args: "rewrite=1&rewrite=1", client: 816.110.240.512, server: example.com, request: "GET /login HTTP/1.1", host: "example.com"

The "rewrite=1&rewrite=1" looks like the problem but I do not understand why this is duplicating the rewrite,

Any suggestions?

Sorry, only registered users may post in this forum.

Click here to login

Online Users

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