Here is what I mean. Say you have user.com as your main account and you want user.net to point to the same account. You have the first domain setup in the httpd.conf as follows:
<VirtualHost 192.168.1.1:80>
ServerName www.user.com
ServerAlias www.user.com user.com
ServerAdmin
[email protected]
DocumentRoot /home/deluxe/domains/user.com/public_html
User user
Group user
CustomLog /var/log/httpd/domains/user.com.bytes bytes
CustomLog /var/log/httpd/domains/user.com.log combined
ErrorLog /var/log/httpd/domains/user.com.error.log
<Directory /home/user/domains/user.com/public_html>
Options +Includes -Indexes
php_flag engine on
#php_admin_value safe_mode 1
</Directory>
#php_admin_value open_basedir /home/user/:/tmp/:/var/www/:/usr/local/lib/php/:/etc/virtual/
</VirtualHost>
Then you have the domain pointer, which is setup as:
<VirtualHost 65.215.220.88:80>
ServerName user.net
ServerAlias deluxetech.net www.user.net
Redirect / http://www.user.com/
User user
Group user
</VirtualHost>
The domain pointer should look something like this:
<VirtualHost 192.168.1.1:80>
ServerName www.user.net
ServerAlias www.user.net user.net
ServerAdmin
[email protected]
DocumentRoot /home/deluxe/domains/user.com/public_html
User user
Group user
<Directory /home/user/domains/user.com/public_html>
Options +Includes -Indexes
php_flag engine on
#php_admin_value safe_mode 1
</Directory>
</VirtualHost>
This allows you to be able to use scriptingnad have one set of files in that folder. By using the Host Header. it will show a different site of files by using different headers or a different database.
Thanks, Eddie