Gentoo Archives: gentoo-user

From: Michael Sullivan <michael@××××××××××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: [gentoo-user] OT - Need help with setting up an Apache alias
Date: Sat, 17 Dec 2005 23:44:13
Message-Id: 1134862852.9115.10.camel@camille.espersunited.com
1 I'm trying to set up aliases to different html directories
2 under /usr/share/doc. I've run into a snag. My first one if for
3 syslog-ng. Here's the Apache2 config for it:
4
5 bullet modules.d # cat 01_manuals.conf
6 Alias /manuals/syslog-ng "/usr/share/doc/syslog-ng-1.6.8-r1/html"
7 <Directory /usr/share/doc/syslog-ng-1.6.8-r1/html>
8 Order allow,deny
9 Allow from all
10 </Directory>
11
12
13 I restarted /etc/init.d/apache2 and poined my web browser to
14 www.espersunited.com/manuals/syslog-ng. It gave me a 403 Forbidden. I
15 checked the permissions from /usr all the way down
16 to /usr/share/doc/syslog-ng-1.6.8-r1/html and all were 755. The
17 contents of /usr/share/doc/syslog-ng-1.6.8-r1/html were 444, but I don't
18 think that's a problem. I looked at /var/log/apache2/error_log for the
19 source of the problem and found this:
20
21 [Sat Dec 17 17:32:24 2005] [error] [client 192.168.1.3] Directory index
22 forbidden by rule: /usr/share/doc/syslog-ng-1.6.8-r1/html/
23
24
25 I thought "Allow from all" meant that anyone could access the directory?
26 What am I doing wrong?
27
28 --
29 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] OT - Need help with setting up an Apache alias [SOLVED] Michael Sullivan <michael@××××××××××××.com>