I have some problem in apache2 configuration.
I have two websites on same IP on LAN.i.e. 192.168.1.5
both have different document roots
for abc.com document root
and for site1.abc.com document root
the above sites are on a server which is accessible to me only via SSH.
Now on Lan if I do
I get abc.com
and if I do
then in both cases I am getting abc.com which is alphabetically first vhost (that is also how apache2 serves)
What should I do to be able to access both the websites
following are vhosts in sites-enabled
<Directory /var/www/abc >
and for site1.abc.com a separate file in /etc/apache2/sites-enabled
<Directory /var/www/site1 >
What should I check in a few blogs I checked they said to mention in /etc/apache2/apache2.conf
But in this case what should I put I have two different websites or what other thing I have missed?
I am using Debian Lenny and apache2