Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddHandler mod_python / PythonHandler mod_python.publisher analog in wsgi? #886

Closed
terrafrost opened this issue May 11, 2024 · 1 comment

Comments

@terrafrost
Copy link

I was using libapache2-mod-python with AddHandler mod_python and PythonHandler mod_python.publisher in my .htaccess file to serve up *.py files. I'm trying to use libapache2-mod-wsgi now and am unsure of how to duplicate this functionality.

@GrahamDumpleton
Copy link
Owner

There is no direct equivalent. You are better off rewriting to use a basic WSGI framework such as Flask (https://flask.palletsprojects.com/en/3.0.x/). Modern day WSGI frameworks are much more powerful and more secure than mod_python.publisher ever was.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants