Popping Mad
2020-05-06 13:58:48 UTC
I am trying to turn off the authentication for a subdirectory that is
protected by authentication
admin.bios-living.com
is protected as a virtual domain
<VirtualHost *:80>
ServerName admin.bios-living.com
ServerAdmin ***@mrbrklyn.com
DocumentRoot "/usr/local/apache2/htdocs/admin"
Alias "/.well-known/acme-challenge/" "/usr/local/apache2/htdocs/tokens/"
# SSLEngine on
# SSLOptions +StrictRequire
# SSLCertificateFile /var/lib/ca-certificates/pem/bios-living.com.crt
# SSLCertificateKeyFile /etc/ssl/private/bios-living.com.key
Header set Cache-Control "no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "0"
Options Indexes
<Files *.html>
SetHandler perl-script
PerlResponseHandler Embperl
</Files>
<Location "/">
AuthType basic
AuthName "admin"
AuthBasicProvider file
AuthUserFile "/usr/local/apache2/conf/admin.auth"
Require valid-user
Options +Indexes +FollowSymLinks
</Location>
Now I need to carve out a resource for letsencrypt without
authentication and without ssl
Nothing seems to work
Alias "/.well-known/acme-challenge/" "/usr/local/apache2/htdocs/tokens/"
<Location "/.well-known/acme-challenge/">
Require all granted
</Location>
<Directory "/usr/local/apache2/htdocs/tokens/">
Require all granted
</Directory>
protected by authentication
admin.bios-living.com
is protected as a virtual domain
<VirtualHost *:80>
ServerName admin.bios-living.com
ServerAdmin ***@mrbrklyn.com
DocumentRoot "/usr/local/apache2/htdocs/admin"
Alias "/.well-known/acme-challenge/" "/usr/local/apache2/htdocs/tokens/"
# SSLEngine on
# SSLOptions +StrictRequire
# SSLCertificateFile /var/lib/ca-certificates/pem/bios-living.com.crt
# SSLCertificateKeyFile /etc/ssl/private/bios-living.com.key
Header set Cache-Control "no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "0"
Options Indexes
<Files *.html>
SetHandler perl-script
PerlResponseHandler Embperl
</Files>
<Location "/">
AuthType basic
AuthName "admin"
AuthBasicProvider file
AuthUserFile "/usr/local/apache2/conf/admin.auth"
Require valid-user
Options +Indexes +FollowSymLinks
</Location>
Now I need to carve out a resource for letsencrypt without
authentication and without ssl
Nothing seems to work
Alias "/.well-known/acme-challenge/" "/usr/local/apache2/htdocs/tokens/"
<Location "/.well-known/acme-challenge/">
Require all granted
</Location>
<Directory "/usr/local/apache2/htdocs/tokens/">
Require all granted
</Directory>