LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bash-python-apache question (https://www.linuxquestions.org/questions/linux-newbie-8/bash-python-apache-question-4175519801/)

threezerous 09-23-2014 07:58 AM

bash-python-apache question
 
Not sure if this is the right forum to ask this question, but have received some good responses in the past...hence posting. Please redirect if not the right forum.
I have a proxy config for my spacewalk apache config, which blocks any other site, extension to my site. I narrowed down the blocking config to following code
Code:

<LocationMatch "^/*">
    # this stanza contains all the handlers for RHN app code

    # added for oracle
    SetEnv NLS_LANG english.UTF8

    # mod_python
    <IfModule !mod_python.c>
    LoadModule python_module modules/mod_python.so
    AddModule mod_python.c
    </IfModule>

    PythonPath "sys.path+['/usr/share/rhn']"
    PythonDebug Off

    SetHandler python-program
    # all of these handlers are defined in apacheServer
    PythonHeaderParserHandler    proxy.apacheServer::HeaderParserHandler
    PythonHandler                proxy.apacheServer::Handler
    PythonCleanupHandler          proxy.apacheServer::CleanupHandler
    DefaultType text/xml

    DirectoryIndex _rhn_proxy/index.html index.html index.htm index.html.var index.shtml index.php index.php4 index.php3 index.phtml index.cgi

</LocationMatch>

Specifically, if I comment out "SetHandler python-program" my add-on config works fine. What does SetHandler python-program exactly do? I searched google and found that it is same as mod-python (maybe a higher version), but really could not find any description on what it does. Any experts who can give me some basics or appropriate links to review?

Thanks in advance

pan64 09-26-2014 06:55 AM

probably: https://httpd.apache.org/docs/curren...tml#sethandler


All times are GMT -5. The time now is 04:12 AM.