Skip to content

Instantly share code, notes, and snippets.

@ciwolsey
Created December 20, 2014 16:40
Show Gist options
  • Select an option

  • Save ciwolsey/5a9b70acb885d8dcc231 to your computer and use it in GitHub Desktop.

Select an option

Save ciwolsey/5a9b70acb885d8dcc231 to your computer and use it in GitHub Desktop.
server {
listen 443 ssl;
root /home/ciwolsey/projects/www/;
index index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;
ssl_certificate megamon_co_uk.csr;
ssl_certificate_key megamon_co_uk.key;
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