I can run certbot on domains and get success message but then I can not reach the site(s). I am running Apache/2.4.46 installed with Homebrew on OS X 10.13.6. This worked before on OS X 10.12. I think this started failing when I upgraded to 10.13. I have upgraded HTTPD from homebrew after OS X 10.13 upgrade. When I run certbot everything seems ok. Then I can not access the domain. Apache does not crash but the domain with SSL does not work.
- I see no error in error_log so I have no idea what is happening. I have to remove SSL from the domain to get it up running again. Since Apache is not crashing but only the domain, how can I find out what is wrong?
My web server is: Apache/2.4.46
The operating system my web server runs on is: Mac OS X 10.13.6
I can login to a root shell on my machine: yes
The version of my client is: certbot 1.9.0 (from homebrew)
Here is my config file (now I have disabled SSL)
<VirtualHost 85.196.85.68:80>
ServerName borchbio.no
ServerAlias www.borchbio.no
ServerAdmin hostmaster@borchbio.no
DocumentRoot "/Library/WebServer/Documents/BorchBio"
CustomLog "/var/log/apache2/borchbio.no/access_log" common
ErrorLog "/var/log/apache2/borchbio.no/error_log"
DirectoryIndex index.html index.php index.htm
Redirect "/narin/" "https://biofokus.no/narin/"
<Directory "/Library/WebServer/Documents/BorchBio">
Options All +MultiViews -ExecCGI -Indexes
AllowOverride AuthConfig
Order deny,allow
Allow from all
<IfModule mod_dav.c>
DAV Off
</IfModule>
</Directory>
RewriteEngine on
RewriteCond %{SERVER_NAME} =borchbio.no [OR]
RewriteCond %{SERVER_NAME} =www.borchbio.no
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<VirtualHost 85.196.85.68:443>
ServerName borchbio.no
ServerAlias www.borchbio.no
ServerAdmin hostmaster@borchbio.no
DocumentRoot "/Library/WebServer/Documents/BorchBio"
Redirect "/narin/" "https://biofokus.no/narin/"
CustomLog /var/log/apache2/borchbio.no/access_log example
ErrorLog /var/log/apache2/borchbio.no/error_log
DirectoryIndex index.html index.php index.htm
<Directory "/Library/WebServer/Documents/BorchBio">
Options All +MultiViews -ExecCGI -Indexes
AllowOverride AuthConfig
Order deny,allow
Allow from all
<IfModule mod_dav.c>
DAV Off
</IfModule>
</Directory>
SSLCertificateFile /etc/letsencrypt/live/borchbio.no/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/borchbio.no/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>