Skip to content

Commit

Permalink
nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Nov 7, 2017
1 parent a2bdf85 commit bdbb553
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
server {
listen 50.116.11.184:80;
server_name *.filldisk.com;
listen 50.116.11.184:80;
server_name *.filldisk.com;

root /home/feross/www/filldisk.com/static;
index index.html;
root /home/feross/www/filldisk.com/static;

# Try to serve static files
try_files $uri $uri/ =404;
try_files $uri $uri/ =404;
}

server {
listen 50.116.11.184:80;
server_name filldisk.com;
return 301 $scheme://www.filldisk.com$request_uri;
listen 50.116.11.184:80;
server_name filldisk.com;
rewrite ^ http://www.filldisk.com$request_uri permanent;
}

0 comments on commit bdbb553

Please sign in to comment.