Gentoo Archives: gentoo-user

From: Kevin O'Gorman <kogorman@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Progress made, not done yet Re: All of a sudden, no apache2. No clue why.
Date: Tue, 03 Aug 2010 22:42:36
Message-Id: AANLkTi=Bw0kYX_enfo2Z5BbCSWZ9AuyBru=SvDPcT-35@mail.gmail.com
In Reply to: [gentoo-user] Progress made, not done yet Re: All of a sudden, no apache2. No clue why. by Kevin O'Gorman
1 On Tue, Aug 3, 2010 at 3:23 PM, Kevin O'Gorman <kogorman@×××××.com> wrote:
2 [snip]
3
4
5 > However, my configs contain a few ScriptAlias directories, which are full
6 > of python programs. They are not being executed, but
7 > served up in source code form, even though they have an initial shebang and
8 > remain executable by all. So there must be some new thing to do besides
9 > defining a ScriptAlias directory. Anybody know what it is?
10 >
11 >
12 I see the same rules wherever I search, so I'm mystified. So here's the
13 essential bit of the config, without even erasing the
14 evidence that I was never able to get mod_python to work. I've tried all
15 combinations of with/without slashes at the end of
16 directory names. The usual starting point to see this stuff is
17 http://hex.kosmanor.com/hex-bin/board, which is likely to show
18 you some python code as things stand.
19
20 ScriptAlias /hex-bin/ /hex/bin/
21 <Directory /hex/bin/>
22 Options FollowSymLinks
23 # AddHandler mod_python .py
24 # PythonHandler hexscript
25 # PythonDebug On
26 Order allow,deny
27 Allow from all
28 </Directory>
29
30
31 ScriptAlias /my-bin/ /hex/hexTest/
32 <Directory /hex/hexTest/>
33 AuthUserFile /etc/apache2/kosmanor/passwords
34 AuthGroupFile /dev/null
35 AuthName "OHex Advanced"
36 AuthType Basic
37 Require valid-user
38 Options FollowSymLinks
39 </Directory>
40
41
42 --
43 Kevin O'Gorman, PhD

Replies