If you want to use these modules, you must specify the relevant compilation parameters at compile time.
This module adds some HTTP and WebDAV extension actions (Put, DELETE, MKCOL, copy, and move). To use this module, you must specify the following compilation parameters at compile time:
./configure--with-http_dav_module
Sample configuration:
Location/{root/data/www; Client_body_temp_path/data/client_temp dav_methods put DELETE mkcol COPY move; Create_full_ Put_path on; Dav_access GROUP:RW all:r; Limit_except get {allow 192.168.1.0/32;
Instructions
Dav_access
Syntax: dav_access user:permissions [users:permissions] ... Default value: Dav_access USER:RW Working with fields: HTTP, server, location Specify permissions for files and directories, for example:
Dav_access USER:RW GROUP:RW all:r;
After you specify the correct group and all, you can specify no user:
Dav_access GROUP:RW all:r;
Dav_methods
Syntax: dav_methods [Off|put|delete|mkcol|copy|move] ... Default value: Dav_methods off Working with fields: HTTP, server, location Extended actions enabled, parameter "off" will prohibit these extended actions. The target file for the put action must exist in the directory where the temporary files are stored (the CLIENT_BODY_TEMP_PATH directive specified by the Location field). When put creates a file, the date header is used to specify the modification time.
Create_full_put_path
Syntax: Create_full_put_path on|off Default value: Create_full_put_path off Working with fields: HTTP, server, location By default, the put action can only create a file in the existing directory, which allows it to create the required directory.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.