|
Lukas Linhart
Almad at Include.cz
Thu Nov 4 17:19:58 EST 2004
Hello,
I run this script with mod_python.publisher:
from mod_python import apache
import os
def index(req):
for soubor in os.listdir(os.curdir):
req.write(soubor)
req.write("\n")
Well, output is same as
ls /
:-/
I have following VirtualHost configuration:
<VirtualHost almad.nerv:80>
DocumentRoot /var/www/webroot/almad.net
ServerName almad.nerv
AddHandler mod_python .py
SetHandler mod_python
PythonHandler mod_python.publisher
PythonDebug On
</VirtualHost>
What can I do for "chrooting" to mod_python's script actual directory?
Thank You for hints,
--
Lukas "Almad" Linhart
[:: http://www.Include.cz/ ::]
[:: Including Your wishes ::]
[:: Almad at Include.cz ::]
[:: PGP/GNUPg key: http://download.almad.net/pubkey.asc ::]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
Url : http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20041104/551b5f6d/attachment.bin
|