Mailinglist Archive: opensuse (4570 mails)

< Previous Next >
Re: [SLE] Apache configuration help

----- Original Message -----
From: "David Crouch" <david.d.crouch@xxxxxxxxx>


Hello all.

I've just recently installed SUSE 10.0, but had the same problem on a
SUSE 9.3 machine and I don't understand why. (I admit I was lazy in
getting around to fixing it).

None of the ~ addresses work in apache, either locally or remotely.
When I try to access any address that's not in /srv/www/htdocs/* I get
the following:

Access forbidden!

You don't have permission to access the requested object. It is either
read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403

I verified the public_html folder is set 755 and the contents are 644
owned to the (user).users group. I assume I'm doing something stupid
I'm just not aware of, or need to configure. I did verify mod_userdirs
is enabled... so, who's got the easy fix for this one?

Thanks for your help.
--
David Crouch

http://httpd.apache.org/docs/1.3/mod/core.html#directory

You need a <Directory> and a </Directory>.

I as well as several of my friends that do very large sites prefer to use VirtualHost entries instead of using the main server. Example:

NameVirtualHost 192.168.1.1:80

<VirtualHost www.test.com:80>
ServerName www.test.com
ServerAlias test.com
DocumentRoot "/www/www.test.com/html"
DirectoryIndex index.html index.htm index.php
ErrorLog /var/log/apache/www.test.com-error_log
TransferLog /var/log/apache/www.test.com-access_log
</VirtualHost>


This binds the server only to port 80. There are several ways to do the above. But this is the easiest and one of the better.

Brad Dameron
SeaTab Software
www.seatab.com










< Previous Next >
References