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....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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) |
|
|||
|
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 | |
|
|