PDA

View Full Version : apache virtual hosts


bubbac
4-29-04, 12:50 PM
i probably shouldnt be asking this, powweb being a host themselves....but im having problems with apache virtual hosts, which i need to use to host several domain's on the same server.

my config file can be found here: http://www.geocities.com/lyrics_lexicon_com/apache_config.txt

the problem is with the virtual host container below:

<VirtualHost 66.55.195.29>
ServerName www.lyrics-lexicon.com
DocumentRoot /lyricslexicon
ServerAdmin llexicon@gwi.net
ErrorLog logs/error.log
</VirtualHost>

basically, i have a folder called "accounts" and within that folder one for every site i host....so i have the document root set to:

DocumentRoot "C:\Program Files\Apache Server\Apache\htdocs\accounts"

and the virtual host document root set to: /lyricslexicon wishing it bring broswers of that domain to directory:

DocumentRoot "C:\Program Files\Apache Server\Apache\htdocs\accounts\lyricslexicon"

however, it isnt doing so....infact i have tried putting in a totaly invalid path in the virtual host's document root and it still brings the viewer to the "main", i guess you can call it, document root:

"C:\Program Files\Apache Server\Apache\htdocs\accounts"

this leads me to assume that their is perhaps some OFF and ON line for the virtual hosts that im missing, but im not seeing it.

any help with this would be nice, i've attempted other forums that are built for apache but i've gotten zero responses, and im aware of how bright the help is here, and they actaully take the time to answer rather than just view the thread.

running:
Windows XP Home
248 MB RAM
Intel P4 2.4 GHZ

thanks, :)

bubbac
4-29-04, 09:49 PM
got it!

rnorth6920
5-7-04, 05:42 PM
does anyone have any good sites that show how to set up apache on a linux server. I have a few books and sites saved, but am having some problems.

grahm
5-7-04, 06:19 PM
Originally posted by rnorth6920
does anyone have any good sites that show how to set up apache on a linux server. I have a few books and sites saved, but am having some problems. Generally most modern distros I've worked with will automatically install and set up Apache for you. What distro are you using?

rnorth6920
5-7-04, 07:13 PM
Originally posted by grahm
Generally most modern distros I've worked with will automatically install and set up Apache for you. What distro are you using?


it is all set up, via regular redhat 9.0 install. My main problem is just getting the IP addresses set up correctly using DSL service with a router.