diff --git a/Nginx-Configuration.asciidoc b/Nginx-Configuration.asciidoc index 3952e35..1e661c0 100644 --- a/Nginx-Configuration.asciidoc +++ b/Nginx-Configuration.asciidoc @@ -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; } } ```