Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2015-05-13 21:15:02 +0000
committerFrank Becker2015-05-14 07:25:38 +0000
commit65b8a30a5f8c1e576f74187bff37b1d253abcd45 (patch)
tree72e1d17e2a110e4eddfd831fbdfe6cca75b6aeb1 /org.eclipse.mylyn.bugzilla.releng
parentef0204a609d460c169c0bd5733babec23e48b008 (diff)
downloadorg.eclipse.mylyn.tasks-65b8a30a5f8c1e576f74187bff37b1d253abcd45.tar.gz
org.eclipse.mylyn.tasks-65b8a30a5f8c1e576f74187bff37b1d253abcd45.tar.xz
org.eclipse.mylyn.tasks-65b8a30a5f8c1e576f74187bff37b1d253abcd45.zip
activate apache2 mod_rewrite for REST instances
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.releng')
-rw-r--r--org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/manifests/init.pp7
-rw-r--r--org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/templates/apache2.conf.erb5
2 files changed, 12 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/manifests/init.pp b/org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/manifests/init.pp
index 8d4fcba1e..e4b96c845 100644
--- a/org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/manifests/init.pp
+++ b/org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/manifests/init.pp
@@ -125,6 +125,13 @@ class bugzilla {
require => Package["apache2"],
creates => "/etc/apache2/mods-enabled/ssl.load",
}
+
+ exec { "Enable rewrite module":
+ command => "a2enmod rewrite",
+ require => Package["apache2"],
+ creates => "/etc/apache2/mods-enabled/rewrite.load",
+ }
+
exec { "Enable cgi module":
command => "a2enmod cgi",
require => Package["apache2"],
diff --git a/org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/templates/apache2.conf.erb b/org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/templates/apache2.conf.erb
index a36e30f7a..6c88a1332 100644
--- a/org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/templates/apache2.conf.erb
+++ b/org.eclipse.mylyn.bugzilla.releng/modules/bugzilla/templates/apache2.conf.erb
@@ -5,4 +5,9 @@ Alias /<%= @www_url %> <%= @base %>/<%= @version %>
DirectoryIndex index.cgi
AllowOverride None
Require all granted
+<% if @rest_enabled %>
+ RewriteEngine on
+ RewriteBase /<%= @www_url %>/
+ RewriteRule ^rest/(.*)$ rest.cgi/$1 [NE]
+<% end %>
</Directory>

Back to the top