ramkrishanbhatt / modwsgi

Automatically exported from code.google.com/p/modwsgi
0 stars 0 forks source link

CANNOT work with mod_ftp 0.9.6 #261

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
mod_wsgi 3.3 cannot work with mod_ftp 0.9.6 beta

My test configure for httpd is :

LoadModule wsgi_module "C:/mod_wsgi.so"
LoadModule ftp_module "C:/mod_ftp.so"
Listen 21 ftp
FTP on
SetEnv FTP_ROOT "C:/myftp"
FTPDocRootEnv FTP_ROOT
FTPOptions CreateHomeDirs
<Directory "C:/myftp">
    AuthType basic
    AuthName "MYFTP
    AuthBasicProvider wsgi
    WSGIAuthUserScript "C:/auth.wsgi"
</Directory>

my auth.wsgi
===========
def check_password(env, usr, pwd):
    return True
===========
Always return True, so any one can login.

Now, start httpd. The ftp serve will dead lock when user try to login.

Original issue reported on code.google.com by xink...@gmail.com on 5 Apr 2012 at 2:04

GoogleCodeExporter commented 8 years ago
Have you tested a WSGI hello world program first to validate that mod_wsgi is 
even running?

Are you running any other WSGI application on the server at the same time, if 
so what?

Are you loading mod_python into same Apache at the same time?

Original comment by Graham.Dumpleton@gmail.com on 5 Apr 2012 at 9:46

GoogleCodeExporter commented 8 years ago
My django app works well with mod_wsgi.
Only one WSGI application running on server when I test mod_wsgi+mod_ftp
There is no mod_python loaded in my test server.

It seems that WSGIAuthUserScript cannot used with mod_ftp otherwise the server 
will be restart.

Original comment by xink...@gmail.com on 6 Apr 2012 at 12:12

GoogleCodeExporter commented 8 years ago
Closing out old issue. No subsequent reports to indicate need to do anything 
and issue now quite old.

Original comment by Graham.Dumpleton@gmail.com on 12 Nov 2014 at 10:45