-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
乱码问题 #18
Comments
Hello, there is a mess after deployment. It is found that utf8 was not declared. Where can I change it? |
Fixes BytemarkHosting#18. Credit-goes-to: CentOS7下安装Apache WebDAV教程 – NT宝贝网 <https://ntbaobei.com/?p=333> Signed-off-by: 林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com>
Hello, I proposed a fix in the PR. Cheers! |
thx
发自我的iPad
在 2020年4月15日,22:30,林博仁(Buo-ren, Lin) <notifications@github.com> 写道:
Hello, I proposed a fix in the PR. Cheers!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FBytemarkHosting%2Fdocker-webdav%2Fissues%2F18%23issuecomment-614074292&data=02%7C01%7C%7Cde57db382ede455b6b4508d7e1498ded%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637225578337626675&sdata=N%2FhVR0KrW08izzbooj0ToBMizI6sdwfx5yzhYJaguDE%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAOP4GYIQ3JT2GJV3HOWQ5J3RMXAIRANCNFSM4KR2CL3A&data=02%7C01%7C%7Cde57db382ede455b6b4508d7e1498ded%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637225578337626675&sdata=SM3GM3Lu3UURABeF4CFj7RcLuS%2FkSVeFvxj7WeOrW8s%3D&reserved=0>.
|
请问能更新hub.docker的文件吗?不会改代码这种! |
你好,我今天也发现了这个问题。简单的解决办法是通过这个容器的终端进去 |
DavLockDB "/var/lib/dav/DavLock" AuthType Digest These disable redirects on non-GET requests for directories thatdon't include the trailing slash (for misbehaving clients).BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully |
原image默认没有这一行,需要手动添加后再重启容器,但image更新的话又会被覆盖掉。推荐2个方法避免更新覆盖dav.conf <Directory "/var/lib/dav/data/">
Dav On
Options Indexes FollowSymLinks
AuthType Basic
AuthName "WebDAV"
IndexOptions Charset=utf-8 <-----------添加这一行
AuthUserFile "/user.passwd"
<RequireAny>
Require valid-user
</RequireAny>
</Directory> |
问题解决了,多谢!!此镜像应该不会更新了! |
@wyxls 感谢层主的方法,我之前在做覆盖的时候,直接从它的命令里面找的源路径 |
其实Dockerfile里有注释,httpd:alpine镜像拉取后默认workdir是/usr/local/apache2
|
我注意到这里的/usr/local/apache2/conf/conf-available/dav.conf 是不是应该conf-enable,我映射/usr/local/apache2/conf/conf-enable/dav.conf 或者/usr/local/apache2/conf/conf-enable 都不行啊,然后/usr/local/apache2/conf/conf-enable/dav.conf 也不行 |
conf/conf-enable里的dav.conf是个软链接,实际文件是conf/conf-available/dav.conf |
这个有没有弄好的镜像,进容器内修改在启动如果设置不同的账号密码就无法登录了 |
您好,现在部署后出现乱码,发现是没有申明utf8导致的,请问在哪里修改?
The text was updated successfully, but these errors were encountered: