summaryrefslogtreecommitdiffstats
path: root/compass-cobbler/cobbler_web.conf
diff options
context:
space:
mode:
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>