Click to See Complete Forum and Search --> : forbidden access permission apache
When I add a virtualhost in httpd.conf which references a different documentroot I get the error
Forbidden
you don't have permission to access / on this server.
What is the problem?
TIA
re-v
sharth
01-03-2003, 06:50 PM
chmod a=r /new/doc/root/* try.
I'm not sure what you mean
This is what I have
NameVirtualHost 192.168.25.1
<Directory "/usr/local/apache2/www">
</Directory>
<VirtualHost 192.168.25.1>
DocumentRoot /usr/local/apache2/www
ServerName www.mireav.com
</VirtualHost>
<Directory "/usr/local/apache2/www/reavey">
</Directory>
<VirtualHost 192.168.27.1>
DocumentRoot /usr/local/apache2/www/reavey
ServerName www.reav23.com
</VirtualHost>
The 192.168.27.1 produces the error
TIA
re-v
btw DocumentRoot is defined on top as
DocumentRoot "/usr/local/apache2/www"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/usr/local/apache2/www">
#
# 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
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# 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 None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
thanks
re-v
solved by going to the directory that cooresponded to 192.168.27.1 and chmod to 777
re-v
Thanks for the chmod tip
re-v
sharth
01-04-2003, 03:46 PM
I wouldn't recommend doing a 777 on the file. That gives everyone read and write access to the files. If you have an ftp server up with access to that directory, then anyone who could get on the ftp server could fubar the server. Or anyone with local access (any user name).
I'd recommend a chmod 744. that gives you read-write, but everynoe else only read, which still should work.