Adding a second virtual host to same IP using Apache2 failing

November 1, 2017 108 views
Apache Debian

Currently using Apache 2 on Debian 8 with my droplet successfully. When adding a new conf in sites-available and after the reload, my call to the second virtual provides the original site after a short hesitation and white screen. The original site is using a LetsEncrypt cert but here's the conf I think is being used for the original site (first). The second paste is the new virtual.

root@ciwise-1:/etc/apache2/sites-enabled# cat 000-default.conf
<VirtualHost *:80>

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html

ErrorLog ${APACHELOGDIR}/error.log
CustomLog ${APACHELOGDIR}/access.log combined

RewriteEngine on
RewriteCond %{SERVERNAME}
RewriteRule ^ https://%{SERVER

And ... the second in /etc/apache2/sites-enabled

root@ciwise-1:/etc/apache2/sites-enabled# cat org.conf
<VirtualHost *:80>
DocumentRoot /var/www/org
ErrorLog ${APACHELOGDIR}/error.log
CustomLog ${APACHELOGDIR}/access.log combined

Can anyone help me get the second (.org) virtual working? It redirects to now.


1 Answer
dlwhitehurst November 2, 2017
Accepted Answer

I created a LetsEncrypt certificate for and then restarted. I called and things worked. If I just entered the url changed to So, I flushed my browser cache and now I can enter and it goes to Everything is okay. All is good.

Have another answer? Share your knowledge.