]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
apache.conf: load modules conditionally
authorYehuda Sadeh <yehuda@inktank.com>
Sat, 20 Jul 2013 18:30:24 +0000 (11:30 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Sat, 20 Jul 2013 18:30:24 +0000 (11:30 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
teuthology/task/apache.conf.template

index a6083d660bd159704d1ac030b89f45779d428831..87e92728a90667398da2e652728e0c82f1184e65 100644 (file)
@@ -1,7 +1,15 @@
-LoadModule env_module {mod_path}/mod_env.so
-LoadModule rewrite_module {mod_path}/mod_rewrite.so
-LoadModule fastcgi_module {mod_path}/mod_fastcgi.so
-LoadModule log_config_module {mod_path}/mod_log_config.so
+<IfModule !env_module>
+  LoadModule env_module {mod_path}/mod_env.so
+</IfModule>
+<IfModule !rewrite_module>
+  LoadModule rewrite_module {mod_path}/mod_rewrite.so
+</IfModule>
+<IfModule !fastcgi_module>
+  LoadModule fastcgi_module {mod_path}/mod_fastcgi.so
+</IfModule>
+<IfModule !log_config_module>
+  LoadModule log_config_module {mod_path}/mod_log_config.so
+</IfModule>
 
 Listen 7280
 ServerName rgwtest.example.com