Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Trouble with PHP

$
0
0
From continued experimentation, the fix was that I'd accidentally missed the slash of the alias statement. It should have been:

location /atwell/ {
alias /home/paul/atwell/;
auth_basic "Please log in";
auth_basic_user_file /home/paul/atwell/htpasswd;
index index.php;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;}}

Doh! The errors were very obscure for such a trivial mistake. Such is life.

BTW - How do I post code in this forum??

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>