ggggus
Programmer
- Jul 5, 2003
- 114
Ok, I believe I've included the important parts of the apache config file (names have been changed to protect my security). here is the issue I'm having:
The domains seem to be working properly, but the UserDir is not... If I go to The initial page pulls up but includes from that file do not work because the document root is being set wrong... more specifically:
Does not work becuase the document root is wrong. if I do a phpinfo() it shows apache having the document_root set to /home/test/public_html
What is wrong here with my config?
***************************************
J. Jacobs
The domains seem to be working properly, but the UserDir is not... If I go to The initial page pulls up but includes from that file do not work because the document root is being set wrong... more specifically:
Code:
require_once($_SERVER['DOCUMENT_ROOT']."/includes/init.php");
What is wrong here with my config?
Code:
DocumentRoot "/var/[URL unfurl="true"]www/html"[/URL]
#
# 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 All
</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 "/var/[URL unfurl="true"]www/html">[/URL]
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [URL unfurl="true"]http://httpd.apache.org/docs-2.0/mod/core.html#options[/URL]
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
UserDir disabled
UserDir enabled test test2
#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disable" line above, and uncomment
# the following line instead:
#
UserDir public_html
</IfModule>
<VirtualHost *:80>
SuexecUserGroup "#502" "#501"
ServerName foo.com
ServerAlias [URL unfurl="true"]www.foo.com[/URL]
DocumentRoot /home/test/public_html
ErrorLog /home/test/logs/error_log
CustomLog /home/test/logs/access_log common
ScriptAlias /cgi-bin/ /home/test/cgi-bin/
<Directory /home/test/public_html>
Options IncludesNOEXEC FollowSymLinks
allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName ads.foo.com
ServerAlias [URL unfurl="true"]www.ads.foo.com[/URL]
DocumentRoot /home/test/domains/ads.foo.com/public_html
ErrorLog /home/test/domains/ads.foo.com/logs/error_log
CustomLog /home/test/domains/ads.foo.com/logs/access_log common
ScriptAlias /cgi-bin/ /home/test/domains/ads.foo.com/cgi-bin/
<Directory /home/test/domains/ads.foo.com/public_html>
Options IncludesNOEXEC FollowSymLinks
allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
SuexecUserGroup "#503" "#502"
ServerName bar.com
ServerAlias [URL unfurl="true"]www.bar.com[/URL]
DocumentRoot /home/test2/public_html
ErrorLog /home/test2/logs/error_log
CustomLog /home/test2/logs/access_log common
ScriptAlias /cgi-bin/ /home/test2/cgi-bin/
<Directory /home/test2/public_html>
Options IncludesNOEXEC FollowSymLinks
allow from all
</Directory>
</VirtualHost>
***************************************
J. Jacobs