Setup Virtual Host without Domain
Posted by: maggiemae (---.direcpc.com)
Date: April 06, 2008 10:53PM

I followed JBLN's guide and I am getting error messages and wamp won't even start. Not sure what the problem is; I also tried adding the following to end my main config file

(After I had edited host file in C:/windows/system32/drivers/etc.)

NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1>
ServerName domain
DocumentRoot C:/wamp/www/domain
</VirtualHost>


<VirtualHost 127.0.0.1>
ServerName sub1
DocumentRoot C:/wamp/www/sub1
</VirtualHost>

<VirtualHost 127.0.0.1>
ServerName sub2
DocumentRoot C:/wamp/www/sub2
</VirtualHost>

When I try to access domain I get 403 Forbidden Access Error


Would appreciate info on how to correct this so it will work. Tried JBLN's and got message in apache log file that it couldn't find error logs. I inserted the logs folders, but didn't put any files in them.

All I am really trying to do is set up some directories and then test them using a program that requires sym links to/from them to work. I don't want to start scattering symlinks in my hosting site that are hard to delete.

Maggie

Options: ReplyQuote
Re: Setup Virtual Host without Domain
Posted by: yfastud (Moderator)
Date: April 07, 2008 06:05AM

Hey Maggie

Quote

NameVirtualHost 127.0.0.1
First, I don't see that line in my VH guide :-(

Quote

<VirtualHost 127.0.0.1>
Second, you're missing the port there which is 1 of reasons your Apache stopped working
Third, make sure to have all folders structure correctly w/ your vh codes; most people miss the folder log in folder www :-(

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.