Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

im using wildcard subdomains and would like to specify the directory to send an unused subdomain. i have edited the 000-default in my sites enabled but that does not effect anything.

how could i track down where the setting are for the unused?

Im running ubunutu 10.04.

share|improve this question
What's the output from apachectl -S? – Shane Madden Dec 11 '12 at 5:43
@ShaneMadden Ubuntu don't ship apachectl (or, at least, the 10.04.3 LTS I have access to doesn't have one). You (somewhat-annoyingly) need to substitute what-I-put-in-my-answer. – nickgrim Dec 12 '12 at 10:35
@nickgrim Should be apache2ctl, then? – Shane Madden Dec 12 '12 at 16:35
Ha! Yeah, that works too. :) – nickgrim Dec 12 '12 at 18:39

Requests will be going to the first VirtualHost that has either a ServerName or ServerAlias that matches the requested hostname (including wildcards like * If you don't have any matches, they'll be going to the first-defined VirtualHost.

Since editing 000-default hasn't made any difference, I presume you've got a more-specific VirtualHost somewhere.

grep -r /etc/apache/

should help you find the file it's in (obviously, replace as necessary).

Also, you can do the following to see a list of all your VirtualHosts:

APACHE_RUN_USER=www-data APACHE_RUN_GROUP=www-data /usr/sbin/apache2 -S

(EDIT: or, indeed, just apache2ctl -S)

share|improve this answer
thanks! i was able to find out the the default domain is pointing to var/www (plesk .. grrr) grepping the default servername in apapche2/ didnt show anything... so maybe its a plesk thing, but where could the conf be that routes default. i should mention the default is a server id subdomain. ( – petergus Dec 10 '12 at 12:11

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.