ClayB's picture

Hello,

Just installed a brand new Turnkey Lamp server onto our ESXi 5.5 hosts. The machine started up beautifully in all of a few minutes. Quite nice. Now comes the configuring time... was hoping it would be just a clean and easy, alas...

I have a domain whose www record is pointing to our DNS servers. Once arriving, the firewall is pointing that domain to the IP Address of our webserver. Apache Virtual Host is setup to forward the domain to the proper website doc root.

This is exactly how it works on another Linux webserver (not running Turnkey). 

On the turnkey server, all I get is the Turnkey Lamp Control Panel when accessing the domain. 

The Virtual Host was setup as follows using the Servers -> Apache Servers -> Create Virtual Host

<VirtualHost *>
     DocumentRoot "/var/www/eldermaltreatment"
     ServerName eldermaltreatment
     
     <Directory "/var/www/eldermaltreatment">
          allow from all
          Options None
          Require all granted
     </Directory>
</VirtualHost>

I'm quite new with Linux, so I may be missing something, but as far as I can tell, this replicates the old server and should work. 

Any ideas what's going on?

Thanks!

ClayB

Forum: 
Jeremy Davis's picture

Have you disabled the default site?
a2dissite 000-default
Have you enabled your new site?
a2ensite new-site-name
If you're not sure, then have a peek in /etc/apache2/sites-enabled
ls /etc/apache2/sites-enabled
If you want to see what sites are available to be enabled then check /etc/apache2/sites-available
ls /etc/apache2/sites-sites-available
Then use a2ensite/a2dissite commands to enable/disable your sites as desired. Last thing you need to do is restart Apache after making your changes.
service apache2 restart
ClayB's picture

Disabling the default website did the trick... thank you!

Add new comment