diff options
author | Nathan Lasseter <nathan@4574.co.uk> | 2014-06-07 10:16:18 +0000 |
---|---|---|
committer | Nathan Lasseter <nathan@4574.co.uk> | 2014-06-07 10:16:18 +0000 |
commit | b05cc0180d8dae5af2cc11860c3654cc0e45ed2b (patch) | |
tree | 231cf7df9190b0aedaeff73faf9c5a6d75296a57 /nginx.sample | |
parent | 6d03e10297392a4b8092a7b27258b2b9abc96a16 (diff) |
Refactoring and updated configs
Diffstat (limited to 'nginx.sample')
-rw-r--r-- | nginx.sample | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nginx.sample b/nginx.sample index ad5fa4f..f225b35 100644 --- a/nginx.sample +++ b/nginx.sample @@ -7,7 +7,9 @@ server { root /var/www; - rewrite \/post\/(.*)$ /viewpost.php?post=$1; + rewrite \/blog\/feed$ /blog/rss.php; + rewrite \/blog\/post\/(.*)$ /blog/viewpost.php?post=$1; + location /dopost.php { auth_basic "Login to post"; auth_basic_user_file /var/www/.htpasswd; |