Gossamer Forum
Home : General : Internet Technologies :

Apache, vhost problem

Quote Reply
Apache, vhost problem
I'm trying to setup a virtual host on Apache 2.x in Windows 98, but I cannot figure out what is wrong. This is the dummy-config I have set, just for testing it:

Code:
<VirtualHost *>
ServerAdmin webmaster@test1.vhost-fake.com
DocumentRoot /htdocs/vhost/test1.vhost-fake.com
ServerName test1.vhost-fake.com
ErrorLog logs/test1.vhost-fake.com-error_log
CustomLog logs/test1.vhost-fake.com-access_log common
</VirtualHost>


Now, when I run Apache, I get this error:

"Warning: DocumentRoot [/htdocs/vhost/test1.vhost-fake.com] does not exist"

...so, any ideas what I'm doing wrong? that directory does indeed exist, so I'm not sure what's going on. Any help is appreciated.
-Erik.

Last edited by:

Blurshape: Jun 2, 2003, 10:39 AM
Quote Reply
Re: [Blurshape] Apache, vhost problem In reply to
Not too sure. The error indicates the broad reason, so it could be permissions, disallowed directory characters (I know that should'nt be the case), missing driver letter....I don't know, just guessing.
Quote Reply
Re: [Paul] Apache, vhost problem In reply to
well, if I include the drive letter, I get this:

Syntax error on line 984 of C:/Program Files/Apache/Apache2/conf/httpd.conf:
DocumentRoot takes one argument, Root directory of the document tree
-Erik.
Quote Reply
Re: [Blurshape] Apache, vhost problem In reply to
Try quoting the path.
Quote Reply
Re: [Paul] Apache, vhost problem In reply to
yay, I figured out what was wrong! it was because the folder "Program Files" has a space in it, so it was confusing Apache... I went with the DOS name "Progra~1" and now it works.

thanks for your help anyhow Wink
-Erik.