Updated Nginx Configuration (asciidoc)

jorshbag 2016-10-31 08:29:54 -04:00
parent 607b7ce4d5
commit b8f1e42ee5

@ -14,18 +14,18 @@ server {
server_name _; server_name _;
autoindex off; autoindex off;
location / { location / {
expires max; expires max;
return 204 'pixel'; return 204 'pixel';
} }
location /admin{ location /admin {
root /var/www/html; root /var/www/html;
index index.php; index index.php;
auth_basic "Restricted"; #For Basic Auth auth_basic "Restricted"; #For Basic Auth
auth_basic_user_file /etc/nginx/.htpasswd; #For Basic Auth auth_basic_user_file /etc/nginx/.htpasswd; #For Basic Auth
} }
location ~ \.php$ { location ~ \.php$ {
include snippets/fastcgi-php.conf; include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_pass unix:/var/run/php5-fpm.sock;
} }
} }
``` ```