32 lines
912 B
Plaintext
32 lines
912 B
Plaintext
<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> |