Domain Pointers Again

Eagle1

Verified User
Joined
Feb 13, 2004
Messages
63
Location
Corpus Christi, TX
Shouldn't the domain pointers put an entry into httpd.conf pointing to the same folder as the main account rather than redirecting?
I have several family sites I host that use a multisite version of eNvolution. for this to work it needs the correct host address.

Thanks, Eddie
 
Can you be more specific? If you do not want to redirect them you should use dns.. I'm not sure if this is true in your case..

Rick
 
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
 
Originally posted by Eagle1
Then you have the domain pointer, which is setup as:
If you have setted up Domain Pointer as Alias - You wouldn't have additional VirtualHost - it will be just added to ServerAlias string inside VirtualHost of primary domain.

The domain pointer should look something like this:
In my opinion, domain pointer should never look like this.
If you need VirtualHost like this - its simple - just setup "user.net" as additional domain (not pointer) and replace it's public_html with symlink to /home/deluxe/domains/user.com/public_html
 
When I use DA built in functions it starts messing with nameserver records and because it doesnt know how to edit only add and delete, if the domain exists it fails horribly. The above solution worked perfect however.
 
Back
Top