summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDave Cole <dave@developmentseed.org>2013-04-02 18:11:03 -0400
committerDave Cole <dave@developmentseed.org>2013-04-02 18:11:03 -0400
commitbeb2d43259ead245b1f46f5c516b4ab3bd8b3fde (patch)
tree7086e72a90b7196add07ad87669ba471b940ba41 /config
parent9c9f5e7f9bf5f1922ef69291cc8ef68480466e79 (diff)
Clean up nginx config example
Diffstat (limited to 'config')
-rw-r--r--config/nginx17
1 files changed, 17 insertions, 0 deletions
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;
+ }
+}