access multiple unresolved domains under the one account

Flashman

New member
Joined
Sep 13, 2005
Messages
1
Location
Brisbane, Australia
Hi yall,

Here's the deal:
We're currently running 2 servers. One off site, live server, with all of our hosting accounts on it, and One local testing server. Both have DirectAdmin installed.

I've backed up an account and migrated it from the live server to the testing server to play with my php code, but the account has multiple domain accounts within it, which i need all of to be working.

They don't need to be accessible via their domain names, as I'd much rather they point to the live server rather than the testing server.

What i need to do is reference specific domain accounts without using the domain name.

EG: to access a standard account you use:

www.directadminserver.com/~username

how do you access other domains within that username?
 
There's no easy way to do it and you can't access more than at the same time.

You have to log into your control panel and make the domain you want to access your primary domain.

Jeff
 
Here is a quick HOW TO:

1. Create a custom template for domains:
cd /usr/local/directadmin/data/templates/custom
cp -i ../virtual_host.conf .
NOTE:
If you are running Apache 2, use virtual_host.conf2 instead.

2. Now, modify your custom template as follows:
Edit line
ServerAlias www.|DOMAIN| |DOMAIN|
so that it includes |DOMAIN|.testing.com where testing.com is your testing server, i.e.,
ServerAlias www.|DOMAIN| |DOMAIN| |DOMAIN|.testing.com

3. Make sure testing.com domain is properly configured to resolve all this "domains". You need to create a wildcard A record or to create A record for each domain separately.

Hope that helps.
 
Back
Top