Re: Apache question on SUSE 9.1 Pro.

From: Paul J Gans (gans_at_panix.com)
Date: 08/29/04


Date: Sun, 29 Aug 2004 03:43:27 +0000 (UTC)

Synful <andrew.tunney@ozemail.com.au> wrote:
>Morning,

>Been pulling my hair out trying to get a website up for my internal network
>at home. I have the apache service / daemon running with no issues.

>The problem however is that I get the following error when trying to connect
>to the default web site:

>"Access forbidden!

> You don't have permission to access the requested directory. There is
>either no index document or the directory is read-protected.

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

>Error 403

>andrew
> Sun Aug 29 10:48:45 2004
> Apache/2.0.49 (Linux/SuSE) "

>I've coem to SUSE from Fedora where this sort of issue never arose.
>I do notice however that SUSE does have some subtle differences in
>comparison to SUSE in terms of file location.

>My default web site files are in /srv/www/htdocs as per the apache
>configuration in YAST, with the different locations for files, I am sure
>that there is something very simple that I'm missing.

>I love SUSE & find it much better than Fedora in terms of speed & useability
>but little things like this are very frustrating :-(

>--
>Regards,

When you set Apache up (with YAST) it should serve you a
test page which is in /srv/www/htdocs. Did you see that
page?

All you need do is point your browser at

http://127.0.0.1

and they should come up.

The way the Apache configuration files are set up, your
documents should go into the htdocs directory. I'm
not sure I understand what you mean by "with the different
locations for files,..."

Apache has not made it easy to edit the configuration
files (which on my system are in /etc/apache2). Instead
of the old three files and the newer single file, there
are now a bunch of files in that directory. This makes
it easy for YAST to automatically update the configuration
files when you add something such as PHP support and the
like -- but it does make it hard to change the default
directory and the like.

If you are using /srv/www/htdocs as the directory in
which you place your html files, then the next question
is: did you use the url I gave above. If the answer
is yes, and if the file permissions are OK (drwxr-xr-x
on my system with the directory owned by root) and the
file permissions are set to -r-xr-xr-x and owned by root,
then the problem is in the configuration files.

Let us know and we'll see if we can help.

   ------ Paul J. Gans



Relevant Pages

  • Re: [opensuse] apache virtual hosts config in yast
    ... manual) gives configuration in Yast instruction. ... but remember it is only "Yet Another Setup Tool". ... I don't think the generic apache docs ever mention such a beast ... ...
    (SuSE)
  • Re: (Another) simple benchmark
    ... I'm NOT using PHP - it was mentioned as a reason threaded apache is not widely used. ... This performance is objectively low even by itself, without any comparison with other operating systems (such as linux). ... What I *am* doing now is looking for someone who has a 4 CPU or bigger machine idle on which he/she can replicate this simple benchmark (it really IS simple - you need apache20 port in default configuration - everything's included) and confirm or contradict my results. ... If it's Linux, FreeBSD 4, FreeBSD 6, Windows, Solaris, ...
    (freebsd-performance)
  • Re: file:// streams: writing a custom wrapper
    ... The "jailed" wrapper is meant to be used as the default ... The Apache configuration can help because Apache is handling the file:// schema ... and you can use it to restrict access, redirect from one directory to another, etc. ...
    (comp.lang.php)
  • [SLE] mod_jk apache
    ... I have some error when try to integrating Tomcat and Apache with Suse-9.0 ... This is my configuration file ... # cat /etc/sysconfig/apache2 | grep jk ...
    (SuSE)
  • SUMMARY: Sun IP configuration
    ... hammer" approach by having a range of IP addresses set up in the firewall. ... > Subject: Sun IP configuration ... > Apache posts data it is sent from the primary ip address, ...
    (SunManagers)