Welcome! Log In Create A New Profile

Advanced

Re: problem with php script

May 18, 2014 10:54AM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 238
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