Hi,
Thank You for this great package.
I am stuck and can't access my website anymore.
My apache2.conf looks like this:
<
Options -Indexes
Options FollowSymLinks
AllowOverride None
Require all denied
<Directory /usr/share>
AllowOverride None
Require all granted
<Directory /var/www/html/private_website/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
My Virtual Host looks like:
ServerAdmin admin@localhost
ServerName mywebsite.com
ServerAlias mywebsite.com
DocumentRoot /var/www/html/private_website/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
SSLCompression off
SSLOptions +StdEnvVars
SSLOptions +StdEnvVars
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/auth/
RewriteCond %{HTTP_COOKIE} !^.2FA_Auth=([a-zA-Z0-9]+)
RewriteRule ^(.)$ /auth/auth?$1?%{QUERY_STRING} [L,R=302]
RewriteCond %{REQUEST_URI} !^/auth/
RewriteCond %{HTTP_COOKIE} ^.2FA_Auth=([a-zA-Z0-9]+)
RewriteCond </home/pi/apache_2fa>/state/%1 !-f
RewriteRule ^(.)$ /auth/auth?$1?%{QUERY_STRING} [L,R=302]
ScriptAlias /auth/ </home/pi/apache_2fa>/
<Directory </home/pi/apache_2fa/>>
AuthType Digest
AuthName "mywebsite.com"
AuthDigestDomain /
AuthDigestProvider file
AuthUserFile </home/pi/apache_2fa>/apache_credentials
Require valid-user
<Directory </var/www/html/private_website/>>
AuthType Digest
AuthName "mywebsite.com"
AuthDigestDomain /
AuthDigestProvider file
AuthUserFile </home/pi/apache_2fa>/apache_credentials
Require valid-user
I get the error 403 Forbidden.
before all worked fine with ssl certificate etc.
The file I access is the index.html file
I type into the browser:
https://mywebsite.com:1111/private_website/
and the rewrite creates: https://mywebsite.com:1111/auth/auth?/private_website/%3f
Website and the folder name are changed, but illustrate the same issue.
I hope you can help me :)