Apache config. question

Apache config. question

Posted by: jfb2002
Posted on: 2009-10-08 15:55:00

I am curious as to why the following URL:

http://www.homonculus.net/stuff/ab_to_bbdb.py

cannot be served. Even when I add an .htaccess that turns off CGI execution, the file is not available. WTF? Is there any way to see the Apache configuration I'm stuck with?

Re: Apache config. question

Posted by: sXi
Posted on: 2009-10-08 16:03:00

Bit hard to tell without seeing the source. Best guess would be mod_security.

Check: ~/logs/domain/http/error.log




How To Install PHP.INI / ionCube on DreamHost

Re: Apache config. question

Posted by: andrewf
Posted on: 2009-10-08 16:19:00

(after peeking at the file)

Two reasons:

1. Your script isn't generating the proper CGI headers.

2. Your script is importing the AddressBook and Foundation modules, which are specific to OS X. They don't exist on Linux.

Re: Apache config. question

Posted by: jfb2002
Posted on: 2009-10-08 21:52:00

Right, I don't *want* it to be served as CGI. I want to serve everything from my domain statically. I don't see how to modify the apache configuration to allow this, or alternately, to run a less hateful HTTPD server on port 80.

Re: Apache config. question

Posted by: Atropos7
Posted on: 2009-10-08 22:50:00

What directive did you use to "turn off CGI execution" ?

RemoveHandler .py

works for me.

Secondly, it appears http://www.homonculus.net/ does not have anything to serve to begin with.

Customer since 2000 cool openvein.org

Tags: apache configapache configurationwtfhtaccesspyexecution