apache virtual host. all sites are opening same webpage.
I am new to Linux (actually I m preparing for RHCE exam myself), I m using both Fedora core 1 & 2 & Apache 2.0.46 on two different machines, and I have some problem working with apache virtual hosting.
/etc/hosts is like this;
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.10.1 comp1.bhaskar.com comp1
192.168.10.1 comp1.yahoo.com www.yahoo.com
192.168.10.1 comp1.rediff.com www.rediff.com
192.168.10.1 comp1.linux.com www.linux.com
And my /etc/http/conf/http.conf is like this
CustomLog logs/yahoo.com-access_log common
CustomLog logs/rediff.com-access_log common
CustomLog logs/linux.com-access_log common
My problem is that previously www.linux.com, www.yahoo.com were opening (but never www.rediff.com), But now when I m trying to browse any site in my browser it take me to a page where it says INDEX OF /. I have all the index.html files in all the folders.
one person told me to Add these lines in each of your virtual hosts and restart apache.
Options -Indexes -MultiViews
When i add these lines in each of your virtual hosts and restart apache. im able to browse www.linux.com, but www.yahoo.com open the same linux page and im still unable to browse www.rediff.com (it still take me to a page INDEX OF /)
Can any body help me? Did I have done something wrong?need some serious help. stuck on this from long time. :cry: