Skip to content

Instantly share code, notes, and snippets.

@tperrelli
Last active February 26, 2016 14:35
Show Gist options
  • Save tperrelli/15c341e38ebb47c50df2 to your computer and use it in GitHub Desktop.
Save tperrelli/15c341e38ebb47c50df2 to your computer and use it in GitHub Desktop.
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/landing;
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 displaying a 404.
try_files $uri $uri/ =404;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment