##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##

server {
	listen 80 default_server;
	listen [::]:80 default_server;
	
	root /var/www/default;
	index index.html;
	autoindex off;
	server_name_in_redirect off;

	# Make site accessible from http://localhost/
	server_name _;

	access_log /var/log/nginx/access_default.log access_normal;
    error_log /var/log/nginx/error_default.log error;

	location /nginx_status {
		allow 127.0.0.1;
		deny all;
		stub_status on;
	}

	include disallow_hidden_folders.conf;
}

server {
	listen 81 default_server;
	listen [::]:81 default_server;

	root /var/www/default;
	index index.html;
	autoindex off;
	server_name_in_redirect off;

	# Make site accessible from http://localhost/
	server_name _;

	access_log /var/log/nginx/access_default.log access_normal;
    error_log /var/log/nginx/error_default.log error;

	location /nginx_status {
		allow 127.0.0.1;
		deny all;
		stub_status on;
	}

	include disallow_hidden_folders.conf;
}
