Virtual Host at Apache2

Soo-Hyun Choi soohyunc at
Sat Jan 7 16:45:57 UTC 2006


I have a question on <VirtualHost> directives for Apache2.

Current situation:
My server has one IP address (e.g., and it is associated
with one domain name (e.g.,

Wanted task:
I would like to have "", "", and etc etc
as well as "".

What I did but failed:
I created /var/www/abc, /var/www/def, etc etc and put necessary files
under each sub-directories. And I changed apache2.conf file containing
the below.

<VirtualHost *>
  DocumentRoot /var/www/abc

<VirtualHost *>
  DocumentRoot /var/www/def

After all these steps, it is failed to be working. (i.e., if I access
", the browser says the page cannot be
displayed.) Would there somebody let me know how this should be

Thank you.

More information about the ubuntu-users mailing list