Ich entwickle eine X509-Authentifizierung mit Apache und Symfony2. Meine Symfony-Anwendung hat auch eine Authentifizierung mit Login/Passwort auf '/ login' Pfad, und ich möchte einen Speicherort in '/ login_x509' konfigurieren.Apache stdenvvars funktioniert nicht innerhalb der Position
Dies ist meine Apache-Konfiguration.
<VirtualHost *:443>
ServerName extranet
DocumentRoot /var/www/symfony2/extranet/web
DirectoryIndex app.php
Timeout 600
KeepAliveTimeout 67
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/extranet.crt
SSLCertificateKeyFile /etc/apache2/ssl/extranet.key
<Location /login_x509>
SSLOptions +StdEnvVars
SSLVerifyClient optional_no_ca
SSLVerifyDepth 10
</Location>
<Directory /var/www/symfony2/extranet/web>
# enable the .htaccess rewrites
AllowOverride All
Order allow,deny
Allow from All
LimitRequestBody 1024000
</Directory>
ErrorLog /var/log/apache2/extranet_error.log
CustomLog /var/log/apache2/extranet_access.log combined
</VirtualHost>
Wenn ich die Zeilen kommentieren funktioniert es perfekt. Ich erhalte die SSL_CLIENT_S_DN Variablen in der Anwendung. Aber mit der Location bekomme ich diese Variablen nicht.
Ich versuche, die Zeile "RequestHeader setzen X-Client-DN% {SSL_CLIENT_S_DN} e" innerhalb des Standorts, aber es funktioniert nicht.
Vielen Dank im Voraus.