diff options
Diffstat (limited to 'config/nginx')
-rw-r--r-- | config/nginx | 17 |
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; + } +} |