Create VirtualHost in WAMP Server
Posted by: maggari (---.hive.is)
Date: February 11, 2007 03:01AM

Hello i'm trying to create VitrualHost in my httpd.conf file in apache folder on WAMP server what i got now is this..... What should i change in this do you guys think at this is going to work ? Sorry about bad language i'm from iceland winking smiley In hope for help.

#NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# DocumentRoot "C:\wamp\www\"
# ServerName localhost
# ErrorLog C:\wamp\logs\localhost.net-error_log"
#</VirtualHost>
#<VirtualHost maggari.co.nr:80>
# DocumentRoot "C:\wamp\www\maggari.co.nr"
# ServerName maggari.co.nr
# ServerAlias maggari.co.nr www.maggari.co.nr
# ErrorLog "C:\wamp\logs\maggari.net-error_log"
#</VirtualHost>



Post Edited (02-11-07 03:02)

WAMP server user

Options: ReplyQuote
Re: Create VirtualHost in WAMP Server
Posted by: CyberSpatium (71.237.217.---)
Date: February 11, 2007 08:22AM

NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot "C:/wamp/www/"
ServerName localhost
ErrorLog C:/wamp/logs/localhost.net-error.log"
CustomLog "C:/wamp/logs/localhost.net-access.log" common
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/maggari.co.nr"
ServerName maggari.co.nr
ServerAlias maggari.co.nr www.maggari.co.nr
ErrorLog C:/wamp/logs/maggari.co.nr-error.log"
CustomLog "C:/wamp/logs/maggari.co.nr-access.log" common
</VirtualHost>



CyberSpatium
WAMP English Forum Admin
--------------------------------------

like my free support? help support me by checking out my new Newbie Webmaster Development Forum dedicated to the newbie webmaster here:
www.WebDevNewbie.com

Options: ReplyQuote
Re: Create VirtualHost in WAMP Server
Posted by: maggari (---.hive.is)
Date: February 11, 2007 01:38PM

Ok i have changed that but now apache will not start .... Do you guys know why ?



Post Edited (02-11-07 14:34)

WAMP server user

Options: ReplyQuote
Re: Create VirtualHost in WAMP Server
Posted by: CyberSpatium (71.237.217.---)
Date: February 11, 2007 05:11PM

make sure you have this directory
C:/wamp/www/maggari.co.nr

make sure you domain is pointed to your ip address.





CyberSpatium
WAMP English Forum Admin
--------------------------------------

like my free support? help support me by checking out my new Newbie Webmaster Development Forum dedicated to the newbie webmaster here:
www.WebDevNewbie.com

Options: ReplyQuote
Re: Create VirtualHost in WAMP Server
Posted by: maggari (---.hive.is)
Date: February 11, 2007 07:17PM

Ok should I put my ip adress instead * ??? It is 100% at the domain points to mu ip adress the problem is The wamp icon in the corner will only be yellow and apache server doesn't start confused smiley


NameVirtualHost (my ip adress)80

<VirtualHost (my ip adress):80>
DocumentRoot "C:/wamp/www/"
ServerName localhost
ErrorLog C:/wamp/logs/localhost.net-error.log"
CustomLog "C:/wamp/logs/localhost.net-access.log" common
</VirtualHost>
<VirtualHost (my ip adress):80>
DocumentRoot "C:/wamp/www/maggari.co.nr"
ServerName maggari.co.nr
ServerAlias maggari.co.nr www.maggari.co.nr
ErrorLog C:/wamp/logs/maggari.co.nr-error.log"
CustomLog "C:/wamp/logs/maggari.co.nr-access.log" common
</VirtualHost>



WAMP server user

Options: ReplyQuote
Re: Create VirtualHost in WAMP Server
Posted by: CyberSpatium (71.237.217.---)
Date: February 12, 2007 01:03AM

search this form for virtual host, this question has been asked and answered many times.



CyberSpatium
WAMP English Forum Admin
--------------------------------------

like my free support? help support me by checking out my new Newbie Webmaster Development Forum dedicated to the newbie webmaster here:
www.WebDevNewbie.com

Options: ReplyQuote
Re: Create VirtualHost in WAMP Server
Posted by: scott473 (---.twcny.res.rr.com)
Date: February 12, 2007 05:19AM

CyberSpatium it has been asked, AND answered many times, but never correctly. I have searched, and asked, and have yet to get a working answer. sad smiley

Options: ReplyQuote


Sorry, only registered users may post in this forum.