Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-23-2014, 08:58 AM   #1
Registered: Jul 2009
Posts: 94

Rep: Reputation: 15
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
<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/
    AddModule mod_python.c

    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

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
Old 09-26-2014, 07:55 AM   #2
LQ Guru
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,892

Rep: Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Python TypeError when calling Python program from a Bash script noppeli Programming 2 01-15-2013 09:06 AM
Python vs Bash Mercury305 Programming 23 07-17-2012 10:38 AM
[SOLVED] Bash from python ! noony123 Programming 9 03-17-2011 10:59 PM
[SOLVED] Python Installed; bash command: python gets syntax error in cre84j Linux - Software 4 01-23-2011 05:46 PM
Python: bash-shell-like less functionality in the python shell narnie Programming 4 06-29-2010 01:25 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration