Two-factor Apache2

From Frotmail Projects
Revision as of 09:45, 5 April 2022 by Eric (talk | contribs) (Created page with "reverse proxy config: <VirtualHost *:443> ServerAlias test.frotmail.nl ServerAdmin webmaster@frotmail.nl ProxyRequests off ProxyPass /test/ http://1.2.3.4:8080/test/ ProxyPassReverse /test/ http://1.2.3.4:8080/test/ ServerName test.frotmail.nl SSLEngine on SSLCertificateFile /etc/apache2/ssl/server.pem SSLCertificateKeyFile /etc/apache2/ssl/server.key AddRadiusAuth 1.2.3.4:1812 sharedsecre...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

reverse proxy config:

<VirtualHost *:443>
       ServerAlias test.frotmail.nl
       ServerAdmin webmaster@frotmail.nl
       ProxyRequests off
       ProxyPass /test/ http://1.2.3.4:8080/test/ 
       ProxyPassReverse /test/ http://1.2.3.4:8080/test/
       ServerName test.frotmail.nl
       SSLEngine on
       SSLCertificateFile /etc/apache2/ssl/server.pem
       SSLCertificateKeyFile /etc/apache2/ssl/server.key
       AddRadiusAuth 1.2.3.4:1812 sharedsecret 9:1
       AddRadiusCookieValid 60
       <Location /test>
       AuthType Basic
       AuthName "Google Authenticator"
       AuthBasicAuthoritative off
       AuthBasicProvider radius
       AuthRadiusAuthoritative on
       AuthRadiusCookieValid 60
       AuthRadiusActive On
       require valid-user
       </Location>
</VirtualHost>

Voor de rest van de radius config zie ook Two-factor auth met Google Authenticator