Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows document root for apache2

Status
Not open for further replies.

scarecrowrob

Technical User
Apr 22, 2002
15
US
I can't seem to get the document root right. Is there something funny about apache2? I have a site running on apache 1.0x.x.x with no problem, but it doesn't use virtual hosts. I do have my files in this directory (c:\program files\apache group\apache2\htdocs\ I want to use virtual host but i keep getting this:

C:\PROGRA~1\APACHE~1\APACHE2\BIN>apache -t
Warning: DocumentRoot [/webandpc] does not exist
Syntax OK

I've tried all variations. Here is my conf:

#
DocumentRoot "c:/program files/apache group/apache2/htdocs/
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory &quot;c:/program files/apache group/apache2/htdocs/
And here is my vhost:

#
<VirtualHost *>
UseCanonicalName Off
ServerName DocumentRoot /webandpc
ErrorLog logs/webandpc-error_log
CustomLog logs/webandpc-access_log common
</VirtualHost> scarecrowrob
 
And don't forget the double-quotes around the path... Newposter
&quot;Good judgment comes from experience. Experience comes from bad judgment.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top