K
k.satirli
Guest
Basically, I've got a python script and I managed to get it to work with script.PY and script.CGI
what I want to have is that the script also works without an extension.
basically like so: "script" is interpreted as python code.
I've been able to get this to run on cPanel servers without a problem, but I've got no clue what I'm doing wrong.
here's what I got in the vhost.conf:
I did execute "/usr/local/psa/admin/sbin/websrvmng -a -v " after updating the vhost.conf but all I get when I access the file is a 404. Nothing is mentioned in the log file.
Any ideas?
what I want to have is that the script also works without an extension.
basically like so: "script" is interpreted as python code.
I've been able to get this to run on cPanel servers without a problem, but I've got no clue what I'm doing wrong.
here's what I got in the vhost.conf:
Code:
<Directory /home/httpd/vhosts/domain.com/httpdocs>
<Files "script">
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</Directory>
I did execute "/usr/local/psa/admin/sbin/websrvmng -a -v " after updating the vhost.conf but all I get when I access the file is a 404. Nothing is mentioned in the log file.
Any ideas?