Catch-all subdomain

jwitteman

New member
Joined
Jul 27, 2012
Messages
4
Hello,

Is it possible to create a catch-all subdomain with DirectAdmin. I've tried * but that's not a valid name...
 
Í came a bit further. However I don't know where to find step 2:

1) Setup the dns with a wildcard A record. Go to Dns Control, and add an "A" record:
* -> 1.2.3.4
where 1.2.3.4 is the IP of your domain.
This will allow anything.domain.com to resolve to your server. Apache does not yet know how to direct that name though.

DONE !!


2) To setup apache, go to:
Admin Level -> Custom Httpd configurations -> domain.com
In the top text area, add this *one* line:
ServerAlias *.|DOMAIN|

then click "Save".

WHERE TO FIND THIS ? ? ?
 
You must have admin access to Directadmin.

As is written
Admin Level
Custom httpd configuration
and than you will find the list of all domains present on server, find the right one, click it and add the line:
ServerAlias *.|DOMAIN|

Once done, at the end of the page you should have a Save button to press.

Regards
 
Okay, thanx.

I don't see the Admin Level button, so I think I don't have admin rights then. I will check with my hoster.

Thanx for the helping me.
 
If you're buying webhosting from someone, then you don't have admin rights; admin is the management level for the entire control panel. To get admin level you'd need your own dedicated or virtual server.

Jeff
 
Back
Top