访问webdav中的php文件时被解析

Standard
<VirtualHost *:80>
 ServerAdmin [email protected]
 DocumentRoot /web/dev/
 ServerName webdav.yemaosheng.com
 <Location />
  Dav On
 
  #加下面两行
  SetHandler default-handler
  ForceType text/plain
 
  Options Indexes FollowSymlinks Includes
 
  Order Allow,Deny
  Allow from all
 
  AuthType Basic
  AuthName "webdav"
  AuthUserFile "/etc/apache2/davuser.passwd"
  AuthBasicProvider file
  <LimitExcept PUT POST DELETE MOVE OPTIONS>
    Require user username
  </LimitExcept>
 </Location>
</VirtualHost>
 
htpasswd /etc/apache2/davuser.passwd username;

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.