Skip to content

Commit

Permalink
cook-5, remove SSL vhost, use http only for example purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed Apr 9, 2009
1 parent 588384c commit bf33c5c
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions jira/templates/default/apache.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,7 @@
ServerAlias <%= va %>
<% end -%>
<% end -%>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]
</VirtualHost>

<VirtualHost *:443>
DocumentRoot <%= @node[:jira][:install_path] %>
ServerAdmin ops@<%= @node[:domain] %>
<% if @node[:jira][:virtual_host_name] -%>
ServerName <%= @node[:jira][:virtual_host_name] %>
<% end -%>
<% if @node[:jira][:virtual_host_alias] -%>
<% va_list = @node[:jira][:virtual_host_alias].kind_of?(Array) ? @node[:jira][:virtual_host_alias] : [ @node[:jira][:virtual_host_alias] ] -%>
<% va_list.each do |va| -%>
ServerAlias <%= va %>
<% end -%>
<% end -%>

ErrorLog <%= @node[:apache][:log_dir] %>/jira-error.log
TransferLog <%= @node[:apache][:log_dir] %>/jira-access.log
RewriteEngine On
Expand All @@ -41,10 +24,9 @@

ProxyRequests Off
ProxyPreserveHost On
RewriteRule ^/server-status$ /server-status$1 [L]

RewriteEngine On

RewriteRule ^/(.*)$ http://127.0.0.1:8080/$1 [P,QSA,L]
ProxyPassReverse / http://127.0.0.1:8080

</VirtualHost>

0 comments on commit bf33c5c

Please sign in to comment.