diff --git a/templates/default/web_app.conf.erb b/templates/default/web_app.conf.erb
index cc28e81..d410d15 100644
--- a/templates/default/web_app.conf.erb
+++ b/templates/default/web_app.conf.erb
@@ -18,16 +18,9 @@
ErrorLog <%= node['stash']['apache2']['error_log'].empty? ? node['apache']['log_dir']+"/stash-error.log" : node['stash']['apache2']['error_log'] %>
LogLevel warn
-
- <% if node['apache'] && node['apache']['version'] == '2.4' %>
- Require all granted
- <% else %>
- Order Deny,Allow
- Allow from all
- <% end %>
-
- ProxyPass / http://localhost:<%= node['stash']['tomcat']['port'] %>/ connectiontimeout=5 timeout=300
- ProxyPassReverse / http://localhost:<%= node['stash']['tomcat']['port'] %>/
+ RewriteEngine On
+ RewriteCond %{HTTPS} off
+ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
>