The operating system my web server runs on is (include version): Ubuntu 18.04
My OS is: Ubuntu 16.04
The version of my client is certbot 0.31.0
We have used this config in the past to enable Apache basic auth. We want to protect the entire site. After lets encrypt installation, the config for basic auth is being ignored.
Here is my ssl vhost config; “my.host-le-ssl.conf”
Alternatively I have tried this addition to the SSL vhost config also to no avail:
<Location /usr2/www/my.host>
Satisfy Any
AuthType Basic
AuthName "Site under maintenance - be back soon"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
SetEnvIf Request_URI "/.well-known/acme-challenge" acme-challenge
Order Deny,Allow
Deny from all
Allow from env=acme-challenge
</Location>
Any help would be great this is a work-stoppage for us. Thank you in advance.
That all looks to be in the HTTPS section.
Are you forwarding all HTTP to HTTPS?
If so, maybe you could make an exception and handle the auth requests in HTTP.
That way your HTTPS can be “better” locked down.
If not, can we have a look at the HTTP section?
And in case you may think that I’m “avoiding” your question…
Well, I probably am; as is seems to be a web server programming one.
And this is a forum for LE certificate issues.
Thank you so very much, I know this is not really on topic here - so one more shot if anything jumps out at you - because it all looks good to me too. I miss subtle things in Apache configs sometimes:
Here is the whole ssl config (sans some config minutia as noted):
Those two things don't seem to add up.
If the document root is /usr2/www/my.host
then the location for /usr2/www/my.host
Would be found at: http(s)://your.domain/usr2/www/my.host/*
I don't think that is what you meant to do.
The document root: /usr2/www/my.host
corresponds to: http(s)://your.domain/
Which (within this context/section) would be: <location />
Lordy yes. The docs, of course. I chipped in $25 and will render a further penance in the form of public service to balance your generosity. Thank you Rudy.