Updated Nginx Configuration (asciidoc)

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

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