summaryrefslogtreecommitdiffstats
path: root/compass-cobbler/cobbler_web.conf
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2017-11-03 08:46:51 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-11-03 08:46:51 +0000
commitefe568f8fea785f3933108d176a12cb3f59466a6 (patch)
treecfb4d80f0cea67549a73ddadeff60b3e5b0d4fbe /compass-cobbler/cobbler_web.conf
parent936165548e0cd034ec118e43c1cc925ca2ac8b05 (diff)
parent9852c792eebda940ccc8bd18b8acf2d69f7b3715 (diff)
Merge "Add compass-cobbler"
Diffstat (limited to 'compass-cobbler/cobbler_web.conf')
-rw-r--r--compass-cobbler/cobbler_web.conf17
1 files changed, 17 insertions, 0 deletions
diff --git a/compass-cobbler/cobbler_web.conf b/compass-cobbler/cobbler_web.conf
new file mode 100644
index 0000000..04b9881
--- /dev/null
+++ b/compass-cobbler/cobbler_web.conf
@@ -0,0 +1,17 @@
+# This configuration file enables the cobbler web
+# interface (django version)
+
+# Force everything to go to https
+RewriteEngine on
+RewriteCond %{HTTPS} off
+RewriteCond %{REQUEST_URI} ^/cobbler_web
+# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
+
+
+WSGIScriptAlias /cobbler_web /usr/share/cobbler/web/cobbler.wsgi
+
+<IfVersion >= 2.4>
+ <Location /cobbler_web>
+ Require all granted
+ </Location>
+</IfVersion>