From c79249027b5b11bbf04edfb6f810294fadc8e228 Mon Sep 17 00:00:00 2001
From: Lubomir Bucek <lubomir.bucek@eox.at>
Date: Fri, 9 Oct 2020 00:00:34 +0200
Subject: [PATCH] test

---
 shibauth/etc-httpd/conf.d/shib.conf |  6 ------
 shibauth/etc-httpd/conf.d/sp.conf   | 13 +++++++++++++
 2 files changed, 13 insertions(+), 6 deletions(-)
 create mode 100644 shibauth/etc-httpd/conf.d/sp.conf

diff --git a/shibauth/etc-httpd/conf.d/shib.conf b/shibauth/etc-httpd/conf.d/shib.conf
index 758f387c..191c4328 100644
--- a/shibauth/etc-httpd/conf.d/shib.conf
+++ b/shibauth/etc-httpd/conf.d/shib.conf
@@ -5,9 +5,3 @@ UseCanonicalName On
 <Location />
   SetHandler shib
 </Location>
-
-<Location /secure>
-  AuthType shibboleth
-  ShibRequestSetting requireSession 1
-  require shib-session
-</Location>
diff --git a/shibauth/etc-httpd/conf.d/sp.conf b/shibauth/etc-httpd/conf.d/sp.conf
new file mode 100644
index 00000000..9749dc2b
--- /dev/null
+++ b/shibauth/etc-httpd/conf.d/sp.conf
@@ -0,0 +1,13 @@
+ServerName shib.pdas.prism.eox.at
+
+<VirtualHost *:80>
+    ServerName https://shib.pdas.prism.eox.at:443
+    UseCanonicalName On
+
+    DocumentRoot "/var/www/html"
+    <Location /secure>
+      AuthType shibboleth
+      ShibRequestSetting requireSession 1
+      require shib-session
+    </Location>
+</VirtualHost>
\ No newline at end of file
-- 
GitLab