I have an Apache virtualhost configured as a webdav server, but mapping
a certain subdirectory to mod_wsgi. My python code gets executed for
"GET" and "HEAD" requests, but "OPTIONS" and "PROPFIND" seems to be
captured and processed by the Apache core.

Is there any way for mod_wsgi to get all HTTP methods?.

I have thought about segregating that subdirectory to a different
virtualhost (127.0.0.1) via mod_proxy. That virtualhost would have
webdav disabled. I don't know if this would work but it would be my last
option, anyway, because overhead. Traffic is huge.

My configuration:

"""
[...]
<Location />
Dav on
 AuthType        Basic
 AuthBasicProvider file
 AuthUserFile    XXX
 AuthName       "Webdav"

 require user jcea

 DirectorySlash off # Para permitir renombrar y borrar directorios
</Location>

[...]

# Si no indico el numero de procesos, es uno, y es "wsgi.multiprocess=False"
WSGIDaemonProcess buffy threads=16 display-name=%{GROUP}
python-path=/home/buffy/ home=/home/buffy/ stack-size=524288
WSGIProcessGroup buffy
WSGIScriptAlias /buffy/ /home/buffy/wsgi.py

<Location /buffy/>
 AuthType        Basic
 AuthBasicProvider file
 AuthUserFile    XXX
 AuthName       "Webdav"

 <RequireAny>
   <RequireAll>
     require valid-user
     require method GET OPTIONS PROPFIND
     require not user descarga2015 descarga2016
   </RequireAll>
 </RequireAny>
</Location>
"""

I had read the thread "WSGIScriptAlias and WebDAV" from late september.

It is interesting because my script IS actually getting HEAD and GET but
Apache is processing "OPTIONS" and "PROPFIND" itself. Apparently this is
what the original poster wanted, I hope my configuration would be useful
to him.

In my case, I want WSGI script to get all methods inside a particular
location.

-- 
Jesús Cea Avión                         _/_/      _/_/_/        _/_/_/
[email protected] - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
Twitter: @jcea                        _/_/    _/_/          _/_/_/_/_/
jabber / xmpp:[email protected]  _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to