I can't get virtual hosts working?
Posted by: just_me (---.xs4all.nl)
Date: September 02, 2007 07:52PM

Hi,

I'm dealing with a problem, i wonder if i do make an error.

I am using Wamp5 Apache/2.2.4 (Win32)

I want to use multiple domainnames at my server. The server have been there for testing purpose only and i used to connent to it ip based. I created some dirs for my sites like this

c:\wamp\www\website1
c:\wamp\www\website2

and i just used to connect like

[10.0.0.1]
[10.0.0.1]

I have do have a local dns server running, i did add a domain record. A ping @domain name will end at my webserver. So far so good.

I did add a virtual host to my httpd-vhosts.conf like this:

<VirtualHost *:80>
ServerAdmin webmaster@website1.com
DocumentRoot c:\wamp\www\website1
ServerName www.website1.com
ErrorLog c:\wamp\logs\website1\error.log
CustomLog c:\wamp\logs\website1\access.log common
</VirtualHost>

I also enabled this line in my httpd.conf like this:

Include conf/extra/httpd-vhosts.conf

whatever i try, i will end on the WAMP configuration homepage.

Does anybody see where i went wrong?

Thanks Rudie



Post Edited (09-02-07 21:13)

Options: ReplyQuote
Re: I can't get virtual hosts working?
Posted by: just_me (---.zozijn.nl)
Date: September 03, 2007 04:37PM

solved, i needed some sleep it seems, somehow file permissions at my vhosts.conf were gone, i was able to open it and modify it, SYSTEM could nothing with it.

Don't ask me what caused it, all other file permissions in the dir were ok...glad it's solved!!



Post Edited (09-03-07 16:38)

Options: ReplyQuote


Sorry, only registered users may post in this forum.