Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sp90 committed May 11, 2016
1 parent ef6d9af commit dbb03fc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
35 changes: 18 additions & 17 deletions default
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
server {
root /var/www;
index index.html index.htm;
root /var/www;
index index.html index.htm;

# Make site accessible from http://localhost/
server_name localhost;
# Make site accessible from http://localhost/
server_name localhost;

# Add 1 day expires header for static assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 1d;
}
# Add 1 day expires header for static assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 1d;
}

location / {
# First attempt to serve request as file, then
# as directory, then fall back to redirecting to index.html
try_files $uri $uri/ @root;
}
location / {
# First attempt to serve request as file, then
# as directory, then fall back to redirecting to index.html
try_files $uri $uri/ @root;
}

# If nginx can't find a file, fallback to the homepage.
location @root {
rewrite .* / redirect;
}

# If nginx can't find a file, fallback to the homepage.
location @root {
rewrite .* / redirect;
}
}
12 changes: 6 additions & 6 deletions default-ssl
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
server {
listen 443;
listen 443;

root /var/www;
index index.html index.htm;
root /var/www;
index index.html index.htm;

ssl on;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
ssl on;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
}

0 comments on commit dbb03fc

Please sign in to comment.