Forum archive
Change location of /var/www
Hello Everyone,
I sucessfully got my Turnkey Linux LAMP stack up and running with the latest updates/upgrades. Managed to install VMware Tools and the latest Webmin 1.760.
I also have achieved to get the VMware Shared Folders working. They are mounted at boot time under /mnt.
I am strugling with some probably stupid thing that I can't figure out.
I have a "c:\www" folder on my HOST box shared and mapped on my guest under /mnt/www
The question is... How can I change the default location and/or create a new Virtualhost pointing to that location so any site that I put under /mnt/www will be served?
c:\www\site1 -> /mnt/www/site1 -> http://myltkvm/site1
c:\www\site2 -> /mnt/www/site2 -> http://myltkvm/site2
How can I acconplish this?
Thank you in advance for any help.
I have created a small manual on how to get shared folders working if anyone is interested;
http://unrevealingbox.blogspot.com.es/2015/09/how-to-mount-vmware-shares...
Alternatively you can mount --bind one location to another. E.g. mount /mnt/www to /var/www
The final otpion is to just change your webroot. That will require tweaking the Apache site to use /mnt/www instead of /var/www... Apache site files are in /etc/apache2/site-available they are enabled/disabled with a2ensite/a2dissite
PS Nice work on the blog post! :)