Lines 15-20
RewriteCond %{HTTPS} !=on
|
Link Here
|
---|
|
15 |
RewriteRule ^/?simplesamlphp/(.*) https://%{SERVER_NAME}/simplesamlphp/$1 [R,L] |
15 |
RewriteRule ^/?simplesamlphp/(.*) https://%{SERVER_NAME}/simplesamlphp/$1 [R,L] |
16 |
''' |
16 |
''' |
17 |
@!@ |
17 |
@!@ |
|
|
18 |
@!@ |
19 |
import os.path |
20 |
cert_path = configRegistry.get('saml/idp/certificate/certificate', '') |
21 |
if os.path.isfile(cert_path): |
22 |
print """<Directory {}> |
23 |
<Files {}> |
24 |
Require all granted |
25 |
</Files> |
26 |
</Directory> |
27 |
""".format(*os.path.split(cert_path)) |
28 |
@!@ |
18 |
|
29 |
|
19 |
<Directory /usr/share/simplesamlphp/www/> |
30 |
<Directory /usr/share/simplesamlphp/www/> |
20 |
<FilesMatch ".+\.ph(p[345]?|t|tml)$"> |
31 |
<FilesMatch ".+\.ph(p[345]?|t|tml)$"> |