Ready to post? First, try searching for your answer.
Hello Folks,
I wish to have Auth0 to protect an apache directory. I have installed the mod, enabled it, and even set it up in the mod config and a virtualhost. However when a party visits X domain it does not redirect…
Obviously things have been redacted. All help would be great.
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin
ServerName
DocumentRoot /var/www/staff
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
OIDCProviderMetadataURL https://TLD.us.auth0.com/.well-known/openid-configuration
OIDCClientID private
OIDCClientSecret 'private'
OIDCScope "openid name email"
OIDCRedirectURI https://staff.tld.online/
OIDCCryptoPassphrase PASSPHRASE
<Location /var/www/staff>
AuthType openid-connect
Require valid-user
LogLevel debug
</Location>
SSLCertificateFile /etc/letsencrypt/live/staff.tld/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/staff.tld/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>
​​
​