name based virtual hosts, suse
Date: 12/04/05
(Apache) Keywords: php, html, web, yahoo, google, apache
I am beginning to work on multiple sites on my home test server and need to set up virtual hosts.
My server is running SuSE 10 with Apache 2, and is accessed by typing in "talon" in firefox's address bar. I copied vhosts.template to site1.conf and edited it as follows:
Next I opened /etc/hosts and edited as follows:
Then, rcrestart apache2.... ok.
And here is where I am stumped.. (and btw I googled the bit about /etc/hosts - i'm not sure if that's how it should be). If I type in http://talon/site1 Apache says page can't be found. If I try http://site1 page can't be found. My site1 files exist in the DocumentRoot listed in the site1.conf file above.
I also read through apache's documentation on virtual hosts but the way they explained it didn't make as much sense to me.
Thanks for any and all help.. I've wanted to learn vhosts for some time now.
Source: http://www.livejournal.com/community/apache/27604.html