阿帕奇webdav的,无法创建"测试"当文件test.txt文件夹存在 [英] Apache Webdav, unable to create "test" folder when file test.txt exists
问题描述
我在使用Ubuntu的服务器,Apache的,webdav的一个不寻常的问题,一直没能找到答案。
如果我创建一个名为文件夹/文件的test.txt然后创建一个文件夹/文件测试,它说,该文件已经存在。如果我删除的test.txt,那么我就可以创建一个文件夹/文件测试它的工作原理。我还可以无论是从服务器上的命令行创建。可以是其他然后名称中的文本,例如jquery.ui.zip和./jquery.ui /
我测试过的是公共服务器上,我可以同时创建的,所以我认为它不是一个WebDAV的限制,但或许我的配置或WebDAV的的Apache2模块导致的问题。
烫发似乎没关系,因为我可以创建/复制/删除文件夹/文件。与命名冲突只是一个问题。由于涉及的大量文件,它只是不实际的重命名它们。
任何帮助的欢迎,在正确的方向轻推将是一件好事,
<虚拟主机*:443> 服务器名称[删除]
ServerAlias [删除] 的ServerAdmin [删除]
的DocumentRoot /家庭/项目/ 错误日志/home/projects/error.log
LOGLEVEL警告
#Options指数无 #SSL引擎开关:
#这个虚拟主机启用/禁用SSL。
在SSLEngine的 #自签名(snakeoil)证书可以通过安装创建
#的SSL证书包。看到
#/usr/share/doc/apache2.2-common/README.Debian.gz获取更多信息。
#如果两个密钥和证书仅在存储在同一文件中,
需要#了SSLCertificateFile指令。
了SSLCertificateFile [删除]
了SSLCertificateKeyFile [删除] 别名/项目/家庭/项目/ <目录为/ home /项目/>
选择多视图索引 SSLOptions + StdEnvVars 设置AllowOverride无
为了允许,拒绝
所有允许
< /目录> <位置/项目>
DAV在
摘要进行AuthType
AuthName指令webdav1digest
的AuthUserFile [删除]
需要有效的用户 ForceType指令文本/纯 SSLOptions + StdEnvVars 为了否认,允许
所有拒绝
从192.168.1.0/24允许
< /地点> #修正了几个客户的一个问题 - 重定向与DAV方法的文件夹。
BrowserMatchMicrosoft数据访问Internet发布提供重定向,仔细
BrowserMatchMS FrontPage中重定向,仔细
BrowserMatch^ WebDrive重定向,仔细
BrowserMatch^ WebDAVFS / 1。[0123]重定向,仔细
BrowserMatch^ GNOME-VFS / 1.0重定向,仔细
BrowserMatch^ GVFS / *重定向,仔细
BrowserMatch^ XML间谍重定向,仔细
BrowserMatch^ Dreamweaver中,WebDAV的SCM1重定向,仔细
< /虚拟主机>
添加的AllowOverride无
和选项无
似乎要解决这个问题。
<位置/项目>
DAV在 设置AllowOverride无
选择无
ForceType指令文本/纯 摘要进行AuthType
AuthName指令webdav1digest
的AuthUserFile [删除]
需要有效的用户 #SSLOptions + StdEnvVars 为了否认,允许
所有拒绝
从192.168.1.0/24允许
< /地点>
I'm having a unusual problem with Ubuntu Server, Apache, Webdav and haven't been able to find an answer.
If I create a folder/file called "test.txt" then create a folder/file "test", it says the file already exists. If I delete "test.txt", then I can create a folder/file "test" it works. I can also create both from the command line on the server. Can be names other then text, e.g. jquery.ui.zip and ./jquery.ui/
I've tested is on a public server and I can create both, so I assume it's not a webdav limitation, but perhaps my configuration or apache2 webdav module causing the problem.
Perms seem ok, as I can create/copy/delete folders/files. Just a problem with naming collisions. Due to the large amount of files involved, it's simply not practical to rename them all.
Any help welcome, a nudge in the right direction would be good,
<VirtualHost *:443>
ServerName [removed]
ServerAlias [removed]
ServerAdmin [removed]
DocumentRoot /home/projects/
ErrorLog /home/projects/error.log
LogLevel warn
#Options Indexes None
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
# A self-signed (snakeoil) certificate can be created by installing
# the ssl-cert package. See
# /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
# If both key and certificate are stored in the same file, only the
# SSLCertificateFile directive is needed.
SSLCertificateFile [removed]
SSLCertificateKeyFile [removed]
Alias /projects /home/projects/
<Directory /home/projects/>
Options Indexes MultiViews
SSLOptions +StdEnvVars
AllowOverride None
Order allow,deny
allow from all
</Directory>
<Location /projects>
DAV On
AuthType Digest
AuthName "webdav1digest"
AuthUserFile [removed]
Require valid-user
ForceType text/plain
SSLOptions +StdEnvVars
Order deny,allow
Deny from all
Allow from 192.168.1.0/24
</Location>
# fixes a problem with several clients - redirects for folders with DAV methods.
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-careful
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^gvfs/*" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
</VirtualHost>
Adding AllowOverride None
and Options None
seemed to fix the problem.
<Location /projects>
DAV On
AllowOverride None
Options None
ForceType text/plain
AuthType Digest
AuthName "webdav1digest"
AuthUserFile [removed]
Require valid-user
#SSLOptions +StdEnvVars
Order deny,allow
Deny from all
Allow from 192.168.1.0/24
</Location>
这篇关于阿帕奇webdav的,无法创建&QUOT;测试&QUOT;当文件test.txt文件夹存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!