성공)U5PVR WebDAV 구동하기 및 WebDAV 인증 Basic 및 미인증으로 설정하기
컨텐츠 정보
- 14,257 조회
- 5 댓글
- 0 추천
- 목록
본문
성공)U5PVR WebDAV 구동하기 및 WebDAV 인증 Basic 및 미인증으로 설정하기 https://11q.kr/g5s/bbs/board.php?bo_table=s11&wr_id=3156&sfl=wr_subject&stx=webdav&spt=-1204 U5PVR WebDAV 구동하기 (apache2 패키지 이용) http://cafe.naver.com/mk802/20251 아이디/패스워드 생성및 변경 방법 htdigest -c /etc/apache2/passwd.dav WebDAV [newid] ======================== Using username "root". root@192.168.0.33's password: Linux localhost 3.18.24_hi3798cv2x #5 SMP Fri Nov 3 11:36:07 KST 2017 armv7l Welcome to U5PVR Debian GNU/Linux 8 jessie (eddylab) root@u5pvr-debian:~# apt-get install apache2 Reading package lists... Done Building dependency tree Reading state information... Done apache2 is already the newest version. apache2 set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 54 not upgraded. root@u5pvr-debian:~# a2enmod dav dav_fs auth_digest Enabling module dav. Considering dependency dav for dav_fs: Module dav already enabled Enabling module dav_fs. Considering dependency authn_core for auth_digest: Module authn_core already enabled Enabling module auth_digest. To activate the new configuration, you need to run: service apache2 restart root@u5pvr-debian:~# a2dissite 000-default Site 000-default disabled. To activate the new configuration, you need to run: service apache2 reload root@u5pvr-debian:~# nano /etc/apache2/sites-available/webdav.conf root@u5pvr-debian:~# a2ensite webdav.conf Enabling site webdav. To activate the new configuration, you need to run: service apache2 reload root@u5pvr-debian:~# htdigest -c /etc/apache2/passwd.dav WebDAV u5pvr Adding password for u5pvr in realm WebDAV. New password: Re-type new password: root@u5pvr-debian:~# service apache2 restart [....] Restarting web server: apache2[Sun Nov 05 22:06:05.577780 2017] [alias:warn] [pid 14761] AH00671: The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias. . ok root@u5pvr-debian:~# adduser www-data aid_sdcard_r Adding user `www-data' to group `aid_sdcard_r' ... Adding user www-data to group aid_sdcard_r Done. root@u5pvr-debian:~# adduser www-data aid_media_rw Adding user `www-data' to group `aid_media_rw' ... Adding user www-data to group aid_media_rw Done. root@u5pvr-debian:~# ============= 아래 명령의 복사 넣기 자료 nano /etc/apache2/sites-available/webdav.conf <VirtualHost *:80> DocumentRoot /mnt <Directory /mnt> Options Indexes MultiViews FollowSymLinks AllowOverride none Require all granted </Directory> <Location /> DAV On AuthType Digest AuthName "WebDAV" AuthDigestDomain / AuthDigestProvider file AuthUserFile /etc/apache2/passwd.dav Require valid-user </Location> </VirtualHost> ============== http://192.168.0.33/ ♠ 출처는 링크 참조 바랍니다. https://11q.kr ♠ 아이디 : u5pvr /패스워드 : 설정 값 .... ----------- 12/7일 작업 내용 ---------- ..성공...... make-ssl-cert: make-ssl-cert generate-default-snakeoil --force-overwrite make-ssl-cert: again. Processing triggers for libc-bin (2.19-18+deb8u10) ... Processing triggers for systemd (215-17+deb8u6) ... root@AOL-Debian:~# a2enmod dav dav_fs auth_digest Enabling module dav. Considering dependency dav for dav_fs: Module dav already enabled Enabling module dav_fs. Considering dependency authn_core for auth_digest: Module authn_core already enabled Enabling module auth_digest. To activate the new configuration, you need to run: service apache2 restart root@AOL-Debian:~# a2dissite 000-default Site 000-default disabled. To activate the new configuration, you need to run: service apache2 reload root@AOL-Debian:~# nano /etc/apache2/sites-available/webdav.conf root@AOL-Debian:~# a2ensite webdav.conf Enabling site webdav. To activate the new configuration, you need to run: service apache2 reload root@AOL-Debian:~# htdigest -c /etc/apache2/passwd.dav WebDAV u5pvr Adding password for u5pvr in realm WebDAV. New password: Re-type new password: root@AOL-Debian:~# service apache2 restart [....] Restarting web server: apache2AH00557: apache2: apr_sockaddr_info_get() failed for AOL-Debian AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message . ok root@AOL-Debian:~# adduser www-data aid_sdcard_r Adding user `www-data' to group `aid_sdcard_r' ... Adding user www-data to group aid_sdcard_r Done. root@AOL-Debian:~# adduser www-data aid_media_rw Adding user `www-data' to group `aid_media_rw' ... Adding user www-data to group aid_media_rw Done. root@AOL-Debian:~# nano /etc/apache2/sites-available/webdav.conf root@AOL-Debian:~# ^C root@AOL-Debian:~# 파일 삭제가 되지 않는다 ++ 쓰기가 안되시는 분들 참고 부탁드립니다. 1. Dav lock 폴더 지정 root@u5pvr-debian:~# nano /etc/apache2/mods-enabled/dav_fs.conf DAVLockDB /etc/apache2/lock/DAVLock 2. /etc/apache2/lock 폴더 생성 및 소유자 변경 root@u5pvr-debian:~# mkdir /etc/apache2/lock root@u5pvr-debian:~# chown www-data /etc/apache2/lock 3. 이후 재시작 하시면 잘 작동합니다. service apache2 restart 이유는 잘 모르겠습니다. 권한에 문제가 없는데요. DB 를 생성을 못하네요. 직접 지정해주시면 해결이 됩니다. DAVLockDB ${APACHE_LOCK_DIR}/DAVLock # vim: syntax=apache ts=4 sw=4 sts=4 sr noet DAVLockDB /etc/apache2/lock/DAVLock login as: root root@192.168.0.33's password: Linux localhost 3.18.24_hi3798cv2x #5 SMP Fri Nov 3 11:36:07 KST 2017 armv7l Welcome to U5PVR Debian GNU/Linux 8 jessie (eddylab) root@u5pvr-debian:~# nano /etc/apache2/mods-enabled/dav_fs.conf root@u5pvr-debian:~# mkdir /etc/apache2/lock root@u5pvr-debian:~# chown www-data /etc/apache2/lock root@u5pvr-debian:~# service apache2 restart [....] Restarting web server: apache2[Tue Nov 07 01:34:51.391316 2017] [alias:warn] [pid 18833] AH00671: The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias. . ok root@u5pvr-debian:~# 이후 파일 삭제가 성공 했습니다 =========================================
|
관련자료
-
링크
shimss11q님의 댓글
htdigest -c /etc/apache2/passwd.dav WebDAV 아이디
root@AOL-Debian:~# htdigest -c /etc/apache2/passwd.dav WebDAV newid
Adding password for shimss in realm WebDAV.
New password:
Re-type new password:
root@AOL-Debian:~#
shimss11q님의 댓글
DocumentRoot /mnt/media_rw/sda5/11q
# 경로를 기입합니다.
<Directory /mnt/media_rw/sda5>
# 해당 경로에 대한 옵션입니다.
Options Indexes MultiViews FollowSymLinks
# 여기서 Indexes 가 파일 $
AllowOverride none
Require all granted
</Directory>
</VirtualHost>
shimss11q님의 댓글
DocumentRoot /mnt
# document root 지정
<Directory /mnt>
# 상위 폴더를 지정하여 옵션을 주면 하위폴더도 자동 적용됨
Options Indexes MultiViews FollowSymLinks
AllowOverride none
Require all granted
</Directory>
<Location />
DAV On
AuthType Basic
AuthName "WebDAV"
# <-- realm 값입니다.
AuthUserFile /etc/apache2/passwd_basic.dav
# <-- 패스워드 파일 위치
Require valid-user
</Location>
</VirtualHost>