0

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.

petergus
  • 121
  • 4

1 Answers1

1

Requests will be going to the first VirtualHost that has either a ServerName or ServerAlias that matches the requested hostname (including wildcards like *.example.com). 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 example.com /etc/apache/

should help you find the file it's in (obviously, replace example.com 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)

nickgrim
  • 4,466
  • 1
  • 19
  • 28
  • 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. (rs2353.host.com) – petergus Dec 10 '12 at 12:11