git conf

Alias /uploads "/opt/server/webserver/httpd/uploads"

<Directory "/opt/server/webserver/httpd/uploads">

    Dav On

    Order Allow,Deny

    Allow from all

    #AuthType Digest

    #AuthName DAV-upload

扫描二维码关注公众号,回复: 1150856 查看本文章

    AuthType Basic

    AuthName "Git"

    # You can use the htdigest program to create the password database:

    #   htdigest -c "/opt/server/webserver/httpd/user.passwd" DAV-upload admin

    AuthUserFile "/opt/server/webserver/httpd/user.passwd"

    #AuthDigestProvider file

    Require valid-user

    # Allow universal read-access, but writes are restricted

    # to the admin user.

    #<LimitExcept GET OPTIONS>

    #    require user admin

    #</LimitExcept>

</Directory>


猜你喜欢

转载自xiaolaogong.iteye.com/blog/1036125
今日推荐