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

Implementation for mod_wsgi #10

Open
rhelms opened this issue Jul 19, 2012 · 2 comments
Open

Implementation for mod_wsgi #10

rhelms opened this issue Jul 19, 2012 · 2 comments

Comments

@rhelms
Copy link

rhelms commented Jul 19, 2012

Is there any chance of doing a version that uses mod_wsgi rather than mod_python.

mod_python has been depreciated for quite sometime [http://attic.apache.org/projects/quetzalcoatl.html], and it would be good to be able to use this with Python 2.7.

@Legrandin
Copy link
Owner

Support for mod_wsgi is definitely something I would like to add in the near future. I looked into that a while ago but I could not find all hooks needed for handling the connection states in the same way mod_python allows. I may not have looked long enough though.

@syntruth
Copy link

syntruth commented Oct 8, 2012

I hope this happens soon. Just blew a day and a half tracking down a PATH_INFO bug in my other code only to find out that it's mod_python and its handling of SCRIPT_NAME and PATH_INFO that it gets from Apache. (Those are "correct" for old-school usages, but modern apps break like mine did.)

Basically, the problem is with a given URI: /user/username, mod_python returns SCRIPT_NAME as '/user' and PATH_INFO as '/username' when the app is expecting PATH_INFO to be the URI. That is to say, the first path segment of the URI is always removed, assumed to be the SCRIPT_NAME, which made sense 5+ years ago.

Since PyAuthenNTLM is the ONLY Apache mod that I've found that works for NTLMv2 and I am required to use NTLM on our internal web-apps, this mod is a life saver, but I'm gonna have to implement work-around code for each app until this is able to work with mod_wsgi. Don't take this as a huge complaint, though. I'm glad you wrote this more than I can say. :D Only venting a bit of the frustration over the last couple work days thinking either Apache or my code was broken.

See this for the issue: http://www.modpython.org/pipermail/mod_python/2009-July/026290.html

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

3 participants