View Single Post

  #2 (permalink)  
Old 02-16-2008
Kees Nuyt
 
Posts: n/a
Default Re: Trouble with vhosts.conf

On Sat, 16 Feb 2008 01:15:10 -0800 (PST), Gaurav
<gauravc@gmail.com> wrote:

>Hi,
>
>I have vhosts turned on in httpd.conf
>
># Virtual hosts
>Include conf/extra/httpd-vhosts.conf
>
>In httpd-vhosts.com, I have following entries.
>
>NameVirtualHost *:80
>
><VirtualHost *:80>
> ServerAdmin nospam@yahoo.com
> DocumentRoot "C:/Programs/apache/httpserver/htdocs"
> ServerName something.dnsalias.com
> ServerAlias something.dnsalias.com
> ErrorLog logs/something.dnsalias.-error_log
> CustomLog logs/something.dnsalias.com.-access_log common
></VirtualHost>
>
><VirtualHost *:80>
> ServerAdmin nospam@gmail.com
> DocumentRoot C:/Programs/apache/httpserver/htdocs/someotherdir
> ServerName www.someotherdir.org
> ErrorLog C:/Programs/apache/httpserver/htdocs/someotherdir/logs/
>jivanrashmi.org-error_log
> CustomLog C:/Programs/apache/httpserver/htdocs/someotherdir/logs/
>jivanrashmi.org-access_log common
>
> <Directory c:/Programs/apache/httpserver/htdocs/someotherdir/>
> AllowOverride All
> Order Allow,Deny
> Allow from All
> </Directory>
>
></VirtualHost>
>
>As soon as I turn on the vhosts, the server doesn't start. What am I
>doing wrong?
>
>Thanks,
>Gaurav


CD to your serverroot, then execute bin\httpd.exe or
bin\apache.exe (name depends on distribution and version)
with the -t parameter to verify httpd.conf.
httpd.exe -h shows all commandline options, there are a
few more the do some verification.

If httpd.conf is Ok, look in your logs/errorlog for any
startup messages.
--
( Kees
)
c[_] I drink to make other people interesting. (#121)