Trouble with vhosts.conf

This is a discussion on Trouble with vhosts.conf within the Windows Web Servers forums, part of the Web Server and Related Forums category; Hi, I have vhosts turned on in httpd.conf # Virtual hosts Include conf/extra/httpd-vhosts.conf In httpd-vhosts....


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008
Gaurav
 
Posts: n/a
Default Trouble with vhosts.conf

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
  #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)
  #3 (permalink)  
Old 02-17-2008
Gaurav
 
Posts: n/a
Default Re: Trouble with vhosts.conf

Kees,

Thanks for the suggestion. I was able to figure out why the server was
not starting. The error and access logs for the vhosts was in a non-
existent directory. Creating that directory fixed that problem.

-g

On Feb 16, 5:53 am, Kees Nuyt <k.n...@nospam.demon.nl> wrote:
> On Sat, 16 Feb 2008 01:15:10 -0800 (PST), Gaurav
>
>
>
> <gaur...@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 nos...@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 nos...@gmail.com
> > DocumentRoot C:/Programs/apache/httpserver/htdocs/someotherdir
> > ServerNamewww.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)


 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:56 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0