summaryrefslogtreecommitdiffstats
path: root/compass-cobbler/cobbler_web.conf
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2017-11-01 15:41:37 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2017-11-01 15:41:37 +0800
commit9852c792eebda940ccc8bd18b8acf2d69f7b3715 (patch)
tree09c35972aee2b68e8db160238329f535f1f9e04f /compass-cobbler/cobbler_web.conf
parent3656ab7b5e3f2f26f7c98f9dcc97b3c461fa2a76 (diff)
Add compass-cobbler
Cobbler container for Compass Change-Id: Ic425b6647c082cc9e7d8c24cdce3ecf43cdb67f0 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
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>