May 18, 2014 10:54AM

Maybe you should read this first:

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.


nginx mailing list
Subject Author Posted

problem with php script

shahin-slt May 18, 2014 06:22AM

Re: problem with php script

vesperto May 18, 2014 10:54AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

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