php files on webdav (SetHandler)

Clint Byrum clint at ubuntu.com
Thu Mar 22 18:24:43 UTC 2012


Excerpts from Mark Dokter's message of Tue Mar 20 04:06:27 -0700 2012:
> Hi!
> 
> I just noticed that the usual way to edit php files through webdav does
> not work on my ubuntu server 11.10. The ForceType text/plain is ignored
> as is the RemoveHandler .php or RemoveType .php.
> After a little trial and error I found out, that a SetHandler None and
> ForceType text/plain combination in the DAV location works now the same
> way the single ForceType text/plain used to work.
> Is it a new apache behaviour, ubuntu specialty or just my installation?
> 

On what version did it "used to work" ? This is most likely an apache
behavior change, but its hard to determine that if we don't know at what
point it did work.

Given the documentation seen here:

http://httpd.apache.org/docs/2.2/mod/mod_mime.html#removehandler

I would expect "RemoveHandler .php" to do the same thing as SetHandler
None, though I do notice that ForceType and SetHandler are both in core,
while RemoveHandler and RemoveType are in mime.. so is it possible you
don't have the mime module enabled (should be on by default)?




More information about the ubuntu-server mailing list