Domain Industry in Asia   SUBMIT


  close
**Setup: LAMP stack; raspberrypi, dynamicdns** **Config: Two domains using a single IP; but defined in Apache as two virtual hosts** I've setup two domains on my LAN, one of them is running on 443 and the other on 80. I have verified that when I am outside my personal network that both sites are reachable via their domain names. However, when I am inside the network, I cannot get to either domain within the network. &#x200B; I've made sure I setup the names in the **/etc/hosts** file, see below: 192.168.0.30 abc.com 192.168.0.30 def.com Here is my **virtualhosts** file: # First site, redirect to 443 <VirtualHost *:80> ServerName abc.com ServerAlias www.abc.com DocumentRoot /var/www/html redirect permanent / https://abc.com/ </VirtualHost> # Second site running on 80 <VirtualHost *:80> ServerName def.com ServerAlias www.def.com DocumentRoot /var/www/def </VirtualHost> # SSL enabled and cert defined for abc.com <VirtualHost *:443> ServerName abc.com ServerAlias www.abc.com DocumentRoot /var/www/html SSLCertificateFile /etc/ssl/abc.com.crt SSLCertificateKeyFile /etc/ssl/private/abc.com.key SSLCertificateChainFile /etc/ssl/abc.com.ca-bundle SSLEngine On </VirtualHost> Any help is much appreciated. Thank you in advance!