Permalink
Browse files

Only accept www.vegguide.org hostname

  • Loading branch information...
1 parent 14f7251 commit 2a7b7e7bc189cf47022a1dbc55a05a692de68e6e @autarch autarch committed Mar 16, 2012
Showing with 6 additions and 13 deletions.
  1. +6 −13 system/etc/nginx/sites-available/vegguide.org
@@ -1,11 +1,15 @@
# Static files and backend proxy
server {
listen 80;
- server_name www.vegguide.org vegguide.org;
+ server_name www.vegguide.org;
error_log /var/log/nginx/vegguide.org/error.log;
access_log /var/log/nginx/vegguide.org/access.log;
-
+
+ if ( $host != "www.vegguide.org" ) {
+ rewrite ^(.*) http://www.vegguide.org$1 permanent;
+ }
+
add_header P3P "policyref=\"http://www.vegguide.org/w3c/p3p.xml\", CP=\"ALL DSP COR CURa ADMa \DEVa TAIa PSAa PSDa OUR IND PHY ONL COM NAV DEM STA\"";
location ^~ /mailman {
@@ -263,17 +267,6 @@ server {
}
}
-# For the old skin feature and a test hostname
-server {
- listen 80;
- server_name uchicago.vegguide.org athens.vegguide.org vegguide.tela.com;
-
- error_log /var/log/nginx/error.log;
- access_log /var/log/nginx/access.log;
-
- rewrite ^ http://www.vegguide.org$request_uri permanent;
-}
-
server {
listen 443;
server_name lists.vegguide.org;

0 comments on commit 2a7b7e7

Please sign in to comment.