Welcome! Log In Create A New Profile

Advanced

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:

http://domain.com/app/css.php?request=skin/theme.css

It redirects to:

http://domain.com/app/css.php/app/css.php?request=skin/theme.css

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? :-)

Thanks

Mike



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?

Thanks
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 75
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready