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 |