hi list,
in my system apache(2.0.47) is running on Redhat 8 + P4.
I am trying to setup virtual hosts but in vein.
I would like to know is it possible to setup virtual hosts without valid
DNS names. Say if my system's IP is 192.168.1.13 (WITHIN LAN), can i set
two vhosts with the name gowtham.myhost.com and sekar.myhost.com.
if yes is the following lines are correct ? do i have to do something in
/etc/hosts
NameVirtualHost 192.168.1.13
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost 192.168.1.13>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/apache2/htdocs/gowtham
ServerName gowtham.myhost.com
ErrorLog logs/host1.example.com-error_log
CustomLog logs/host1.example.com-access_log common
</VirtualHost>
<VirtualHost 192.168.1.13>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/apache2/htdocs/sekar
ServerName sekar.myhost.com
ErrorLog logs/host2.example.com-error_log
CustomLog logs/host2.example.com-access_log common
</VirtualHost>
with the above configuration http://192.168.1.13 directly loads
index.html from /usr/local/apache2/htdocs/gowtham. But im not able to
acess /usr/local/apache2/htdocs/sekar.
can any one help me ....
MANY THANX IN ADVANCE
gowtham
-------------------------------------------------------
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help