I am running a UNIX server on 1and1. I have multiple domains and I want to point each domain to their own folder, essentially having each domain point to their own site.
I have root access and need to point multiple domains to different destination folder. The following instructions will demonstrate how to point your domain to a specific folder directory in a UNIX operating system. .
Note: Before continuing, it is assumed that the Name Servers settings are correct.
- Go to the following path /etc/apache2
- Edit the file named apache2.conf
- Copy and Paste the following and replace the domain and path to match your settings:
Note: NameVirtualHost *:80 is required only once at the beginning.
ServerAlias juanitoibarra.com *.juanitoibarra.com
For each additional domain, you would do the same by adding another entry as shown below:
ServerAlias tacobytes.com *.tacobytes.com
- When complete, restart the Apache server.
This information was obtained from Apache’s Website.