当前位置:网站首页>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
边栏推荐
- [leetcode] 96 and 95 (how to calculate all legal BST)
- 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)
- 面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读
- [Yu Yue education] 233 pre school children's language education reference questions in the spring of 2019 of the National Open University
- CVPR 2022 | TransFusion:用Transformer进行3D目标检测的激光雷达-相机融合
- 众昂矿业:为保障萤石足量供应,开源节流势在必行
- Fastlane one click package / release app - usage record and stepping on pit
- Efficient! Build FTP working environment with virtual users
- DGraph: 大规模动态图数据集
猜你喜欢
C#/VB. Net to add text / image watermarks to PDF documents
R language -- readr package reads and writes data
C#/VB.NET 给PDF文档添加文本/图像水印
众昂矿业:为保障萤石足量供应,开源节流势在必行
轻松玩转三子棋
[data clustering] section 3 of Chapter 4: DBSCAN performance analysis, advantages and disadvantages, and parameter selection methods
Reptile exercises (I)
After installing vscode, the program runs (an include error is detected, please update the includepath, which has been solved for this translation unit (waveform curve is disabled) and (the source fil
A treasure open source software, cross platform terminal artifact tabby
Transformer principle and code elaboration (tensorflow)
随机推荐
[leetcode] 96 and 95 (how to calculate all legal BST)
0x15 string
Valentine's Day confession code
[Android kotlin] lambda return statement and anonymous function
强化学习-学习笔记1 | 基础概念
jsonp
模块化笔记软件综合评测:Craft、Notion、FlowUs
When to use pointers in go?
C language array
从0到1建设智能灰度数据体系:以vivo游戏中心为例
数据库锁表?别慌,本文教你如何解决
Communication tutorial | overview of the first, second and third generation can bus
Reinforcement learning - learning notes 1 | basic concepts
面试官:Redis 过期删除策略和内存淘汰策略有什么区别?
16. Memory usage and segmentation
Leetcode day 17
Comprehensive evaluation of modular note taking software: craft, notation, flowus
Agile development / agile testing experience
Practice: fabric user certificate revocation operation process
轻松玩转三子棋