Permalink
Browse files

Turn off .com portions of the tc vhost in non-production.

This fixes the provisioning build; next the config should be refactored.
  • Loading branch information...
1 parent 653dce7 commit 33aab2de54b211135ca471e1d01e093ea8322230 @benhoskings benhoskings committed Mar 28, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 nginx/tc_vhost.conf.erb
View
4 nginx/tc_vhost.conf.erb
@@ -10,6 +10,7 @@ server {
return 301 http://<%= domain %>$request_uri;
}
+<% if env == 'production' %>
server {
listen <%= listen_host_dot_com %>:<%= listen_port %>;
server_name www.<%= domain_dot_com %>;
@@ -21,6 +22,7 @@ server {
server_name www.<%= domain_uk %>;
return 301 http://<%= domain_uk %>$request_uri;
}
+<% end %>
server {
listen <%= listen_host %>:<%= listen_port %>;
@@ -32,13 +34,15 @@ server {
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5:!kEDH;
+ <% if env == 'production' %>
# All traffic is redirected to .com
location = / {
return 301 $scheme://<%= domain_dot_com %>/au;
}
location / {
return 301 $scheme://<%= domain_dot_com %>$request_uri;
}
+ <% end %>
}
<% if env == 'production' %>

0 comments on commit 33aab2d

Please sign in to comment.