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


At work, I'll be migrating our server from a WAMP box to a LAMP box and with my knowledge of Apache and wildcard domains, we're hoping to use instead of our current

Of course, management wants the project_id in the URL for accounting, billing and organizational purposes, so they want to use or

Problem is, the developers and project managers like the short name to develop with (, so there's a conflict.

My Question

Is there a way for Apache to automatically list a sub-domain's sub-sub-domains, such as listing (through a simple directory listing or of the like) sub-sub domains such as,, ??

That way we can point a client to (which is easier to say over the phone) and have them click on their project_id.

Or am I going about this the wrong way?

share|improve this question

1 Answer 1

Running httpd -S will list all VirtualHost and NameVirtualHosts for an apache configuration. However if you are using the wildcard feature, I believe the only authoritative source for this information is the DNS server for the "" zone. Of course, you can do analysis of the access logs, provided that you have %{Host}i in your LogFormat, but that will only provide sub-sub-domains that have been accessed before.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.