enabling Virtual hosts causing error
Posted by: ArticleWiki (---.bb.sky.com)
Date: April 30, 2008 11:11PM

having completed the neccassary from the guides hosted here I have edited the appropriate files, however when I reaactivate wamp it goes yellow when as below.

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

When I put the # back in and restart wamp it loads ok e.g.


# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

Any idea's:


Virual host is:


NameVirtualHost *:80

<VirtualHost *:80 >
ServerName www.healthtipsdirectory.com
ServerAlias healthtipsdirectory.com
DocumentRoot C:/wamp/www/home
ErrorLog C:/wamp/www/domain/logs/error.log
CustomLog C:/wamp/www/domain/logs/access.log common
</VirtualHost>

<VirtualHost *:80 >
ServerName shop.healthtipsdirectory.com
ServerAlias sub1
DocumentRoot C:/wamp/www/shop
ErrorLog C:/wamp/www/sub1/logs/error.log
CustomLog C:/wamp/www/sub1/logs/access.log common
</VirtualHost>

<VirtualHost *:80 >
ServerName forum.healthtipsdirectory.com
ServerAlias sub2
DocumentRoot C:/wamp/www/forum
ErrorLog C:/wamp/www/sub2/logs/error.log
CustomLog C:/wamp/www/sub2/logs/access.log common
</VirtualHost>

<VirtualHost *:80 >
ServerName blog.healthtipsdirectory.com
ServerAlias sub3
DocumentRoot C:/wamp/www/authors
ErrorLog C:/wamp/www/sub3/logs/error.log
CustomLog C:/wamp/www/sub3/logs/access.log common
</VirtualHost>

<VirtualHost *:80 >
ServerName ads.healthtipsdirectory.com
ServerAlias sub4
DocumentRoot C:/wamp/www/ads
ErrorLog C:/wamp/www/sub4/logs/error.log
CustomLog C:/wamp/www/sub4/logs/access.log common
</VirtualHost>

<VirtualHost *:80 >
ServerName localhost
DocumentRoot C:/wamp/www
ErrorLog C:/wamp/www/logs/error.log
CustomLog C:/wamp/www/logs/access.log common
</VirtualHost>

Lee

Options: ReplyQuote
Re: enabling Virtual hosts causing error
Posted by: ArticleWiki (---.bb.sky.com)
Date: May 01, 2008 12:51AM

Ok I seemed to have semi sorted it, but instead of going to the site it logs me into my broadband router account!!!

Lee

Options: ReplyQuote
Re: enabling Virtual hosts causing error
Posted by: yfastud (Moderator)
Date: May 01, 2008 01:21AM


Options: ReplyQuote
Re: enabling Virtual hosts causing error
Posted by: ArticleWiki (---.bb.sky.com)
Date: May 01, 2008 07:13AM

how do i do that?

lee

Options: ReplyQuote
Re: enabling Virtual hosts causing error
Posted by: yfastud (Moderator)
Date: May 01, 2008 01:27PM

Different router have different setup, but you can look at my guide here to get the idea

[guides.jlbn.net]

Have fun,

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

Options: ReplyQuote
Re: enabling Virtual hosts causing error
Posted by: ArticleWiki (---.bb.sky.com)
Date: May 01, 2008 03:17PM

I have already implemented all of your tips will i need to do the same with mcafee?

Lee

Options: ReplyQuote
Re: enabling Virtual hosts causing error
Posted by: yfastud (Moderator)
Date: May 01, 2008 03:29PM

Yes, you need to set permission for port 80 in McAfee

Have fun,

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

Options: ReplyQuote
Re: enabling Virtual hosts causing error
Posted by: ArticleWiki (---.bb.sky.com)
Date: May 01, 2008 10:07PM

Ok fine that's sorted but none of this explains why wamp does not load all services once virtual hosts is enabled in httpd:conf!! It still shows yellow!!

Lee

Options: ReplyQuote
Re: enabling Virtual hosts causing error
Posted by: ArticleWiki (---.bb.sky.com)
Date: May 01, 2008 10:57PM

I have enabled all port 80 on all firewalls now but still a yellow icon with a lock on it, is that relevant!!

Lee

Options: ReplyQuote
Re: enabling Virtual hosts causing error
Posted by: rip_pit (---.w90-5.abo.wanadoo.fr)
Date: May 09, 2008 06:25PM

I had the same problem here but i resolved it.
What i discovered after reading the guide is that you must keep in it the original lines for simple localhost.
So that at the end of your httpd-vhost.conf you must have:

<VirtualHost *:80>
	ServerName localhost
	DocumentRoot D:/weblocal/www
	ErrorLog  D:/wamp/logs/error.log
	CustomLog D:/wamp/logs/access.log common
</VirtualHost>

for illustrate, my vhosts is like that and is working fine now:

NameVirtualHost *:80

#a 1st virtual host
<VirtualHost *:80>
	ServerName www.zfblog.com
	ServerAlias zfblog.com zfblog
	DocumentRoot D:/weblocal/www/zf-tutorial-blog
	ErrorLog  D:/wamp/logs/zfblog_error.log
	CustomLog D:/wamp/logs/zfblog_access.log common
</VirtualHost> 

#a 2nd virtual host
<VirtualHost *:80> 
	ServerName www.zftut.com
	ServerAlias zftut.com zftut
    DocumentRoot D:/weblocal/www/zf-tutorial/public
	ErrorLog  D:/wamp/logs/zf-tutorial_error.log
    CustomLog D:/wamp/logs/zf-tutorial_access.log common
    <Directory D:/weblocal/www/zf-tutorial/public> 
        AllowOverride All 
    </Directory> 
</VirtualHost> 

#
#DON'T FORGET FOLLOWING LINES:
#the original localhost infos
<VirtualHost *:80>
	ServerName localhost
	DocumentRoot D:/weblocal/www
	ErrorLog  D:/wamp/logs/error.log
	CustomLog D:/wamp/logs/access.log common
</VirtualHost>

---------------------------------------------
XP SP3 - pIV - 3.2Ghz - 1.5Go de ram - Wamp 2.0

Options: ReplyQuote


Sorry, only registered users may post in this forum.