Wildcard Domain

I am just moving a large client from cPanel to an Interworx based cluster and must say that though I have only used it this weekend I LOVE the product. Not only is it a great product but the support team behind it is phenomenal. I only wish that I was going to be able to be in Chicago for HostingCon so that I could buy these guys a beer.

Anyways now for my real question.

This client of mine currently allows a wildcard for one of his domains, he has a scrip that recognizes the url used and re-directs them. It is a pretty slick system. To get this working properly in cPanel I just added an additional virtual host configuration as follows in the httpd.conf:


<VirtualHost xxx.xxx.xxx.xxx>
ServerAlias www.*.domain.com
ServerAdmin webmaster@domain.com
DocumentRoot /home/domain/public_html
BytesLog domlogs/domain-bytes_log
ServerName *.domain.com

User username
Group username
CustomLog /usr/local/apache/domlogs/domain.com combined
ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/
</VirtualHost>

now this is in addition to the other <VirtualHost> info for domain.com.

Now since Interworx runs a little different I am unsure of what to do. Do I add this info to httpd.conf, to the /etc/httpd/conf.d/domain.com.conf file, or do I create a new file or something totally different all together?

Thanks for the help I do appreciate it an am happy to be a new member of the InterWorx community!!!

-Billy

Hmm…If I’m understanding correctly what you’re trying to do, you should just be able to login to SiteWorx on that account and go to Site Services > Domains > Subdomain and add * as a subdomain to setup a wildcard subdomain.

I would add it to the domain.com.conf since its more organized that way. All those files get included into the httpd.conf

Justec, would you add it the same way I did before or is there a better way to add it?

-Billy

I haven’t used wildcard on any of my domains so if what you had worked before on apache I would just stick with the same thing with InterWorx

Just add it the same way you would any other subdomain in the SiteWorx interface, just as Greg suggested. I do this for WordPress MU and it works great.

Dont subdomains in SiteWorx create folders? Like forums.domain.com would be a pointer to domain.com/folder?

normally yes. in this case no.