scarecrowrob
Technical User
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 "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
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 "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