Subdomains: wildcarded AND "normal"

N!cklas

Verified User
Joined
Oct 25, 2005
Messages
19
I've got a domain set up with wildcarded subs that works just fine. Now I'd like to add a custom subdomain with other use than the others.

Is it possible and if so, how do I do it?

Full comtrol over server and DA, but too little knowledge...
 
Found the solution:
Doublehomme said:
Instead of doing it in the custom virtual host in DA, you can also update apache's httpd.conf manually (don't forget to first add an A record to you're DNS like John said):
Edit the httpd.conf, in my case:
Code:
nano /etc/httpd/conf/httpd.conf
and add the following lines at the end of the document:
Code:
<VirtualHost xx.xx.xx.xx>#youre'r IP address
        ServerName *.domain.com
        ServerAlias *.domain.com
        DocumentRoot /home/username/domains/domain.com/public_html
</VirtualHost>
This way you're normal subdomains wil still work.
 
Back
Top