From beb2d43259ead245b1f46f5c516b4ab3bd8b3fde Mon Sep 17 00:00:00 2001 From: Dave Cole Date: Tue, 2 Apr 2013 18:11:03 -0400 Subject: Clean up nginx config example --- config/nginx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 config/nginx (limited to 'config') diff --git a/config/nginx b/config/nginx new file mode 100644 index 0000000..07b5ece --- /dev/null +++ b/config/nginx @@ -0,0 +1,17 @@ +server { + root /usr/share/nginx/www; + index index.html index.htm; + + # Make site accessible from http://localhost/ + server_name localhost; + + location / { + # First attempt to serve request as file, then + # as directory, then fall back to index.html + try_files $uri $uri/ /index.html; + + # Optional basic auth restriction + # auth_basic "Restricted"; + # auth_basic_user_file /etc/nginx/.htpasswd; + } +} -- cgit v1.2.3