Problems With VirtualHost
Posted by: tomfmason (---.ks.ks.cox.net)
Date: June 03, 2006 07:21AM

I followed one of the previous post for adding VirtualHost and now Apache will not start. I am sure that is a simple syntax error but it has be baffled at this point. Below is eactly what is in my httpd.config file. Please help

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at <URL:[www.apache.org];
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
NameVirtualHost *:80

<VirturalHost *>
ServerName www.owpt.biz
ServerAlias owpt.biz
DocumentRoot C:\wamp\www\owpt
<VirtualHost>

<VirturalHost *>
ServerName mail.owpt.biz
DocumentRoot C:\wamp\www\mail
<VirtualHost>

<VirturalHost *>
ServerName ftp.owpt.biz
DocumentRoot C:\wamp\www\ftp
<VirtualHost>
#
# 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>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

Options: ReplyQuote
Re: Problems With VirtualHost
Posted by: CyberSpatium (67.170.181.---)
Date: June 03, 2006 07:24AM

change these:
<VirturalHost *>
ServerName www.owpt.biz
ServerAlias owpt.biz
DocumentRoot C:\wamp\www\owpt
<VirtualHost>

<VirturalHost *>
ServerName mail.owpt.biz
DocumentRoot C:\wamp\www\mail
<VirtualHost>

<VirturalHost *>
ServerName ftp.owpt.biz
DocumentRoot C:\wamp\www\ftp
<VirtualHost>

to:

<VirturalHost *:80>
ServerName www.owpt.biz
ServerAlias owpt.biz
DocumentRoot C:\wamp\www\owpt
<VirtualHost>

<VirturalHost *:80>
ServerName mail.owpt.biz
DocumentRoot C:\wamp\www\mail
<VirtualHost>

<VirturalHost *:80>
ServerName ftp.owpt.biz
DocumentRoot C:\wamp\www\ftp
<VirtualHost>

Options: ReplyQuote
Re: Problems With VirtualHost
Posted by: tomfmason (---.ks.ks.cox.net)
Date: June 03, 2006 07:32AM

I changed exactly as instructed but yet Apache will not run.

Options: ReplyQuote
Re: Problems With VirtualHost
Posted by: CyberSpatium (67.170.181.---)
Date: June 03, 2006 10:09AM

make sure skype is not running or another web server like IIS, or apache will not start



Post Edited (06-03-06 10:11)

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

Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Options: ReplyQuote
Re: Problems With VirtualHost
Posted by: coleymr (---.16.32.154.psie.net)
Date: July 04, 2006 04:16PM

Hi
I also have a problem with adding virtual hosts to httpd.conf file

I appended to the httpd.conf file:
Include "d:/wamp/apache2/conf/virtual/gatwick-car-rentals.coleym.localhost.conf"

Then I created a file for the site in that directory with

<VirtualHost *:80>
ServerName gatwick-car-rentals.coleym.localhost
ServerAdmin gatwick-car-rentals.coleym.localhost
DocumentRoot "D:\wamp\www\gatwick-car-rentals"

<Directory "D:\wamp\www\gatwick-car-rentals\">
Options Indexes FollowSymLinks MultiViews
ExecCGI
AllowOverride all
</Directory>
ErrorLog logs\gatwick-car-rentals-error_log
CustomLog logs\gatwick-car-rentals-access_log common
</VirtualHost>

I restart all services, but apache will not restart.
I would be most grateful if anyone can give me any guidance.

Thanks



Mark Coley

Options: ReplyQuote


Sorry, only registered users may post in this forum.