ansible-role-sso/files/hydra-remote-user-v1-apache...

32 lines
912 B
Plaintext
Raw Normal View History

2022-07-19 14:26:08 +02:00
<VirtualHost *:80>
DocumentRoot /var/www/public
SetEnv APP_DEBUG ${APP_DEBUG}
SetEnv APP_ENV ${APP_ENV}
SetEnv HYDRA_ADMIN_BASE_URL ${HYDRA_ADMIN_BASE_URL}
SetEnv TRUSTED_PROXIES ${TRUSTED_PROXIES}
SetEnv LOGOUT_REDIRECT_URL_PATTERN ${LOGOUT_REDIRECT_URL_PATTERN}
# Création d'un alias pour réécrire gérer le préfixe /auth/saml
Alias "/auth/saml" "/var/www/public"
<Directory /var/www/public>
AllowOverride None
Order Allow,Deny
Allow from All
<IfModule mod_rewrite.c>
RewriteEngine On
# Remapping de l'ensemble des chemins en /auth/saml
RewriteBase /auth/saml
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
</Directory>
CustomLog /dev/stdout combined
ErrorLog /dev/stderr
</VirtualHost>