LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-23-2014, 07:58 AM   #1
threezerous
Member
 
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
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
 
Old 09-26-2014, 06:55 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
probably: https://httpd.apache.org/docs/curren...tml#sethandler
 
1 members found this post helpful.
  


Reply


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 08:06 AM
Python vs Bash Mercury305 Programming 23 07-17-2012 09:38 AM
[SOLVED] Bash from python ! noony123 Programming 9 03-17-2011 09:59 PM
[SOLVED] Python Installed; bash command: python base.py. gets syntax error in base.py cre84j Linux - Software 4 01-23-2011 04:46 PM
Python: bash-shell-like less functionality in the python shell narnie Programming 4 06-29-2010 12:25 PM


All times are GMT -5. The time now is 02:31 PM.

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