Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7851431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:10:56+00:00 2026-06-02T19:10:56+00:00

With mod_python I am wondering why I have to create a PythonHandler in order

  • 0

With mod_python I am wondering why I have to create a PythonHandler in order to get a URL to parse Python code. If you see below, if I do not have a file called jrpython.py it will not work.

Is there a way to make all of my .py files just run without adding to this everytime?

<VirtualHost *:80>
   DocumentRoot /var/www/vhost/testsite.com
   ServerName www.testsite.com

  <Directory "/var/www/vhost/testsite.com">
        AddHandler mod_python .py
        PythonHandler jrpython
        PythonDebug On
        Options FollowSymLinks
        AllowOverride All
        Order Allow,Deny
        Allow From All
  </Directory>
</VirtualHost>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T19:10:58+00:00Added an answer on June 2, 2026 at 7:10 pm

    Sure, you can have mod_python run your .py files without having to name them all. You still need to specify a PythonHandler, but that can be the Publisher handler.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a setup where I'm serving simple python pages using the mod_python publisher.
I have a Python-driven web interface powered by Apache 2.2 with mod_python and Python
I have setup an Apache2 mod_python environment with stackless Python and it is working.
I'm running an Apache server (v2.2.10) with mod_python, Python 2.5 and Django. I have
I'm trying to run some python code under Apache 2.2 / mod_python 3.2.8. Eventually
I have Apache/2.2.11 using mod_python 3.3.1/Python 2.5 running under Gentoo linux. In my python
I have mod_python installed on my server, but if I want to acceses a
I have a small dynamic site implemented in mod_python . I inherited this, and
How do I install mod_python to run with Python 2.6 on a Windows machine?
We have a Django app running on apache server (mod_python) on a windows machine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.