momesana wrote:
> Hi, all
> maybe this is not the right place to post a question about setting up
> the apache server, but anyway.
>
> I can't manage to change DocumentRoot to anything else but the default
>
> DocumentRoot "/home/httpd/htdocs"
>
> when I put my files in there it works fine but when I put them
> somewhere else (with the same permissions = 755 or even 777 for the
> directory and all files chmod -R 755 <directory>) it gives following
> error message:
>
> Forbidden
>
> You don't have permission to access / on this server.
>
> Apache/2.0.47 (Gentoo/Linux) Server at 127.0.0.1 Port 80
>
> It is a 403 Erro message and I have no clue why. Even when I copy
> /home/httpd/htdocs to /home/httpd/htdocs2 while preserving the
> filepermissions with
> # cp -Rp /home/httpd/htdocs /home/httpd/htdocs2
> and change the apache2.conf file accordingly it won't work (of course
> I restart apache after modifiing the config file).
>
> What is the reason for this errormessage.
> please email me at [EMAIL PROTECTED]
>
> Thanx in advance.
The Gentoo Apache install adds /etc/apache/conf/commonapache.conf as an
include in /etc/apache/conf/apache.conf. In this file (commonapache.conf) I
found the directive to not allow any directories. So you need to add
somewhere (after that include):
<Directory "/path/to/your/htdocs">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Or something very similar with whatever options you wish for the web
directories you will be serving.
Do be sure to restart Apache. Also have a look at the server
logs.
Tom :-})
Thomas A. Condon
Plain Text Emails Don't Pass Viruses!
--
[EMAIL PROTECTED] mailing list