当前位置:网站首页>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
边栏推荐
- golang 设置goproxy代理的小细节,适用于go module下载超时,阿里云镜像go module下载超时
- Fly tutorial 02 advanced functions of elevatedbutton (tutorial includes source code) (tutorial includes source code)
- 一个数据人对领域模型理解与深入
- 面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读
- PostgreSQL 9.1 soaring Road
- 干货整理!ERP在制造业的发展趋势如何,看这一篇就够了
- 一文掌握数仓中auto analyze的使用
- C语言函数
- DVWA range exercise 4
- DC-5靶机
猜你喜欢
《预训练周刊》第52期:屏蔽视觉预训练、目标导向对话
Etcd 存储,Watch 以及过期机制
Zhongang Mining: in order to ensure sufficient supply of fluorite, it is imperative to open source and save flow
Dry goods sorting! How about the development trend of ERP in the manufacturing industry? It's enough to read this article
[Android kotlin] lambda return statement and anonymous function
C#/VB. Net to add text / image watermarks to PDF documents
C语言数组
I want to talk about yesterday
求解:在oracle中如何用一条语句用delete删除两个表中jack的信息
Play Sanzi chess easily
随机推荐
16.内存使用与分段
Detailed explanation of mt4api documentary and foreign exchange API documentary interfaces
17. Memory partition and paging
游戏启动后提示安装HMS Core,点击取消,未再次提示安装HMS Core(初始化失败返回907135003)
Implementation mode and technical principle of MT4 cross platform merchandising system (API merchandising, EA merchandising, nj4x Merchandising)
BackgroundWorker用法示例
VIM, another program may be editing the same file If this is the solution of the case
AbstractDispatcherServletInitializer 的实现类为什么可以在初始化Web容器的时候被调用
[Android kotlin] lambda return statement and anonymous function
6 分钟看完 BGP 协议。
Practice of retro SOAP Protocol
七、软件包管理
分布式事务相关概念与理论
Can Console. Clear be used to only clear a line instead of whole console?
Leetcode day 17
爬虫练习题(一)
使用 NSProxy 实现消息转发
runc hang 导致 Kubernetes 节点 NotReady
诸神黄昏时代的对比学习
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