atom feed12 messages in ru.sysoev.nginxRe: How to setup nginx to make php wo...
FromSent OnAttachments
Dmitry TimoshenkoFeb 12, 2012 2:59 am 
JoeFeb 12, 2012 3:10 am 
dimentiyFeb 12, 2012 3:32 am 
JoeFeb 12, 2012 4:21 am 
MaxFeb 12, 2012 4:52 am 
Francis DalyFeb 12, 2012 4:59 am 
dimentiyFeb 12, 2012 9:47 am 
dimentiyFeb 12, 2012 10:03 am 
dimentiyFeb 12, 2012 10:13 am 
Francis DalyFeb 12, 2012 12:09 pm 
dimentiyFeb 12, 2012 12:27 pm 
Francis DalyFeb 12, 2012 1:51 pm 
Subject:Re: How to setup nginx to make php works in site subdirectories
From:Francis Daly (fran@daoine.org)
Date:Feb 12, 2012 1:51:52 pm
List:ru.sysoev.nginx

On Sun, Feb 12, 2012 at 03:28:03PM -0500, dimentiy wrote:

Hi there,

I'm quite stupid... I entirly can't think... There was <? ?> short tags disabled, all the scripts use short tags, but only the one I tested locating in root directory had <?php long tag... because I write it

Congratulations on finding that that was the problem.

Now that we know the answer, is there any way it could have been found earlier? This could help the next person who has a similar problem and is searching the mailing list archive.

I think that

curl -i http://one.example.com/stuff/new.php

would show the "X-Powered-By: PHP" header which indicates that the file was handled by php (even if it was just a pass-through): and copying new.php to new.txt and trying

curl -i http://one.example.com/stuff/new.txt

would show the same content but without the PHP header line.

Maybe that would point to the php configuration as being the next place to look.

All the best,

f