problem with php script
Nuno Magalhães
nunomagalhaes at eu.ipp.pt
Sun May 18 14:53:06 UTC 2014
Hi,
Maybe you should read this first: http://catb.org/~esr/faqs/smart-questions.html
This is an nginx forum, not a PHP forum. If you're running copy/pasted
code and don't know why if fails, maybe it shouldn't be in a live
server? You could at the very least remove all the comments and,
perhaps, say why it "does not work". Have you checked the logs (the
ones you commented out)? How about an nginx version? Using pastebin?
Your location / seems odd and you should consider using try_files
(documented in the nginx wiki) instead.
You set all indexes there as .htm(l) and then define the PHP pass as
index.php - i'm not sure if it matters but it's odd and you don't seem
to have any index.html in your mail dump. Nor do i know how your
SCRIPT_FILENAME reacts to an E:/.
Running quickly through your PHP you seem to use HTTP Basic Auth -
without configuring it in nginx. Also documented.
Cheers,
Nuno
More information about the nginx
mailing list