Skip to content

Commit

Permalink
possible fix for yeah#15
Browse files Browse the repository at this point in the history
Sorry I dont have any testing enviroment right now and my htaccess regex is kinda rusty
  • Loading branch information
Denny Mueller committed Sep 24, 2013
1 parent 34a07b3 commit 68b4d9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/uberspacify/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ def abort_red(msg)
task :setup_reverse_proxy do
htaccess = <<-EOF
RewriteEngine On
RewriteRule ^(.*)$ http://localhost:#{fetch :passenger_port}/$1 [P]
RewriteCond %{HTTPS}s on(s)|
RewriteCond %{HTTP_HOST} !^localhost:$ [NC]
RewriteRule ^(.*)$ http%1://localhost:#{fetch :passenger_port}/$1 [P]
EOF
path = fetch(:domain) ? "/var/www/virtual/#{fetch :user}/#{fetch :domain}" : "#{fetch :home}/html"
run "mkdir -p #{path}"
Expand Down

0 comments on commit 68b4d9d

Please sign in to comment.