当前位置:网站首页>Configure WebDAV server on Apache
Configure WebDAV server on Apache
2022-07-04 13:09:00 【Brother Xing plays with the clouds】
WebDAV This enables applications to write files directly to Web Server On , And you can lock the file when writing it , Unlock the file after writing , It can also support version control of files . be based on WebDAV It can realize a powerful content management system or configuration management system . Now the mainstream WEB The server Generally speaking, they support WebDAV. The following is a more detailed introduction WebDAV stay APACHE The server Configuration in .
One 、 modify httpd.conf file
Add the following at the end :
Include conf/mod_dav.conf # Next, we will introduce the settings of this file
Two 、 stay apache/conf/ Create a new file under the directory (mod_dav.conf), And enter the following
#Dav LoadModule dav_module modules/mod_dav.so LoadModule dav_fs_module modules/mod_dav_fs.so DAVLockDB var/DavLock Alias /webdav “/home/webdavfolder” # The next path is the computer ( or The server ) A folder on the hard disk , Space for network storage Dav On
This configuration , In fact, you can visit ( It can be done by windows Network Neighborhood access for ). But this has a fatal disadvantage is that you can access it without a password , The installability is greatly reduced .
3、 ... and 、 Add security configuration
Continue editing the file in step 2 above , Change it to :
#Dav filesystem DAVLockDB var/DavLock Alias /webdav “/home/webdavfolder” Dav On AuthType Basic AuthName DAV AuthUserFile /usr/local/svn/svn-auth-file # Password verification file require user user1
Four 、/usr/local/svn/svn-auth-file File creation
Get into apache/bin Catalog , Execute the following command to generate a password verification file :
htpasswd -cm /usr/local/svn/svn-auth-file user1
Enter the password of the user when prompted for password .
If you need to add users user2, Then execute the following command :
htpasswd -m /usr/local/svn/svn-auth-file user2
Delete a user (user2), The following instructions can be used :
htpasswd -D /usr/local/svn/svn-auth-file user2
5、 ... and 、 After the modification is completed , restart apache
At this time, you can safely access WebDAV 了 . Can pass http://localhost/webdav To access shared resources . Of course , If you are configured on the server , Use http://yourdomain.tld/webdav To visit in the form of . User name and password are the contents of the above settings .
notes : The above configuration has not been verified , For reference only
边栏推荐
- MySQL three-level distribution agent relationship storage
- Agile development / agile testing experience
- PostgreSQL 9.1 飞升之路
- How real-time cloud interaction helps the development of education industry
- C#/VB. Net to add text / image watermarks to PDF documents
- Detailed explanation of mt4api documentary and foreign exchange API documentary interfaces
- Runc hang causes the kubernetes node notready
- Is the main thread the same as the UI thread- Is main thread the same as UI thread?
- 诸神黄昏时代的对比学习
- 6 分钟看完 BGP 协议。
猜你喜欢

室外LED屏幕防水吗?

17.内存分区与分页

16.内存使用与分段

Concepts and theories related to distributed transactions

Jetson TX2配置Tensorflow、Pytorch等常用库

DVWA range exercise 4

Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
![[leetcode] 96 and 95 (how to calculate all legal BST)](/img/d5/788c88064bce6a7c4499017908b3f2.jpg)
[leetcode] 96 and 95 (how to calculate all legal BST)

ArcGis利用栅格处理工具进行影像裁剪

面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读
随机推荐
Show recent errors only command /bin/sh failed with exit code 1
Fly tutorial 02 advanced functions of elevatedbutton (tutorial includes source code) (tutorial includes source code)
17. Memory partition and paging
聊聊支付流程的设计与实现逻辑
Master the use of auto analyze in data warehouse
阿里云有奖体验:用PolarDB-X搭建一个高可用系统
敏捷开发/敏捷测试感受
一个数据人对领域模型理解与深入
Play Sanzi chess easily
AbstractDispatcherServletInitializer 的实现类为什么可以在初始化Web容器的时候被调用
Golang sets the small details of goproxy proxy proxy, which is applicable to go module download timeout and Alibaba cloud image go module download timeout
PostgreSQL 9.1 飞升之路
C語言:求100-999是7的倍數的回文數
Paper notes ACL 2020 improving event detection via open domain trigger knowledge
模块化笔记软件综合评测:Craft、Notion、FlowUs
一文掌握数仓中auto analyze的使用
DVWA range exercise 4
Interviewer: what is the difference between redis expiration deletion strategy and memory obsolescence strategy?
Comprehensive evaluation of modular note taking software: craft, notation, flowus
Talk about the design and implementation logic of payment process