Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I currently have a large amount of domains pointing to a single domain. I used cPanel's Park function to do this.

The domains all have unique content -- they are all pointed toward the same PHP script which does something unique for each domain.

I would like to add a subdomain for all of these domains. It's the same subdomain for them all -- m.*

So I want:

m.domain1.com, m.domain2.com, m.domain3.com, etc.

This sub domain should point to the exact same domain/PHP script that www.domain1.com, www.domain2.com, etc., point to. Again, the PHP script will decide what content to display if the user used the m.* subdomain.

Is it possible to do this easily, or do I need to open each domain's control panel (cPanel) and manually add the subdomain?

Thank you.

Steve

share|improve this question
Don't know about cpanel, but if turns out that with cpanel it's time consuming, you can turn to the basics - with bind DNS server you can use single file for all domains and with apache http server you need nothing but a single section in the config. – Sandman4 Nov 6 '12 at 10:01

closed as too localized by Michael Hampton, Adrian, mdpc, Scott Pack, Iain Nov 6 '12 at 22:15

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.