
: Applying domain name to a directory I have a Linode instance of Ubuntu 10.4 using the LAMP stack to host an instance of Magento and a couple other things. I currently have Magento set up
I have a Linode instance of Ubuntu 10.4 using the LAMP stack to host an instance of Magento and a couple other things. I currently have Magento set up at: 123.459.780.123/magento.
When I apply my domain using the Linode tools, I can apply it so that I can access the Magento site at: example.com/magento.
I would like to host multiple sites, so that I can have /magento, /mysite, and /aclientsite all hosted under Apache, but have domains resolve to those paths, so that the root of the individual sites are those, so I can have exampleA.com, exampleB.com and exampleC.com.
I've done this before using tools in GoDaddy, but never using just Ubuntu and SSH access. Can someone explain what I need to do to point domains to folders in Apache?
More posts by @Cody1181609
1 Comments
Sorted by latest first Latest Oldest Best
I'm not familiar with Linode, but all you need to do is point all the domains to server's IP address and leave the remaining for Apache Name-based Virtual Host handle, something like this:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin ...
DocumentRoot /var/www/html/magento
ServerName magentosite.com
ServerAlias magentosite.com ErrorLog logs/magentosite.error_log
<Directory "/var/www/html/magento">
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin ...
DocumentRoot /var/www/html/aclientsite
ServerName aclientsite.com
ServerAlias aclientsite.com ErrorLog logs/aclientsite.error_log
<Directory "/var/www/html/aclientsite">
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.