강좌 분류

Iomega NAS webdav 설치하기

컨텐츠 정보

본문

Iomega NAS에 데비안을 올린 후 아파치에 웹데브를 올리는 강좌입니다.


Iomega가 WD My Book Live보다 좋은 점은 아무래도 USB를 추가로 끼울 수 있다는 것이죠.


그래서 하드절전모드에 들어간다고 해도, CPU는 계속 돌아가고 있기 때문에 웹데브 같은 간단한 작업은


하드가 돌아가지 않아도 USB상에서 가능합니다.


Putty에 SSH로 로그인하고 먼저 패키지 업데이트를 합니다.


apt-get update


위 명령어를 내리면 밑과 같은 내용이 보입니다.


/root $ apt-get update

Get:1 http://download.webmin.com sarge Release.gpg [189 B]

Ign http://download.webmin.com/download/repository/ sarge/contrib Translation-en

Ign http://download.webmin.com/download/repository/ sarge/contrib Translation-en_US

Ign http://download.webmin.com/download/repository/ sarge/contrib Translation-ko

Get:2 http://download.webmin.com sarge Release [9,542 B]

Get:3 http://ftp.us.debian.org squeeze Release.gpg [1,672 B]

Ign http://ftp.us.debian.org/debian/ squeeze/contrib Translation-en

Ign http://ftp.us.debian.org/debian/ squeeze/contrib Translation-en_US

Ign http://ftp.us.debian.org/debian/ squeeze/contrib Translation-ko

Ign http://ftp.us.debian.org/debian/ squeeze/main Translation-en

Ign http://ftp.us.debian.org/debian/ squeeze/main Translation-en_US

Hit http://ftp.us.debian.org/debian/ squeeze/main Translation-ko

Ign http://ftp.us.debian.org/debian/ squeeze/non-free Translation-en

Ign http://ftp.us.debian.org/debian/ squeeze/non-free Translation-en_US

Ign http://ftp.us.debian.org/debian/ squeeze/non-free Translation-ko

Ign http://download.webmin.com sarge/contrib armel Packages

Get:4 http://ftp.us.debian.org squeeze Release [99.8 kB]

Get:5 http://security.debian.org squeeze/updates Release.gpg [836 B]

Ign http://security.debian.org/ squeeze/updates/contrib Translation-en

Ign http://security.debian.org/ squeeze/updates/contrib Translation-en_US

Ign http://security.debian.org/ squeeze/updates/contrib Translation-ko

Ign http://security.debian.org/ squeeze/updates/main Translation-en

Ign http://security.debian.org/ squeeze/updates/main Translation-en_US

Ign http://security.debian.org/ squeeze/updates/main Translation-ko

Ign http://security.debian.org/ squeeze/updates/non-free Translation-en

Ign http://security.debian.org/ squeeze/updates/non-free Translation-en_US

Ign http://security.debian.org/ squeeze/updates/non-free Translation-ko

Get:6 http://security.debian.org squeeze/updates Release [86.9 kB]

Get:7 http://download.webmin.com sarge/contrib armel Packages [1,218 B]

Get:8 http://ftp.de.debian.org squeeze Release.gpg [1,672 B]

Ign http://ftp.de.debian.org/debian/ squeeze/contrib Translation-en

Ign http://ftp.de.debian.org/debian/ squeeze/contrib Translation-en_US

Ign http://ftp.de.debian.org/debian/ squeeze/contrib Translation-ko

Ign http://ftp.de.debian.org/debian/ squeeze/main Translation-en

Ign http://ftp.de.debian.org/debian/ squeeze/main Translation-en_US

Hit http://ftp.de.debian.org/debian/ squeeze/main Translation-ko

Ign http://ftp.de.debian.org/debian/ squeeze/non-free Translation-en

Ign http://ftp.de.debian.org/debian/ squeeze/non-free Translation-en_US

Ign http://ftp.de.debian.org/debian/ squeeze/non-free Translation-ko

Get:9 http://ftp.de.debian.org squeeze Release [99.8 kB]

Get:10 http://ftp.us.debian.org squeeze/main armel Packages [6,424 kB]

Get:11 http://security.debian.org squeeze/updates/main armel Packages [332 kB]

Get:12 http://ftp.de.debian.org squeeze/main armel Packages [6,424 kB]

Get:13 http://security.debian.org squeeze/updates/contrib armel Packages [681 B]

Get:14 http://security.debian.org squeeze/updates/non-free armel Packages [14 B]

Get:15 http://ftp.us.debian.org squeeze/contrib armel Packages [45.2 kB]

Get:16 http://ftp.us.debian.org squeeze/non-free armel Packages [83.1 kB]

Get:17 http://ftp.de.debian.org squeeze/contrib armel Packages [45.2 kB]

Get:18 http://ftp.de.debian.org squeeze/non-free armel Packages [83.1 kB]

Fetched 13.7 MB in 1min 7s (204 kB/s)

Reading package lists... Done

/root $



그리고 패키지 업데이트를 합니다.


apt-get --yes upgrade


위 명령을 내리면 밑과 같은 결과가 나옵니다.



/root $ apt-get --yes upgrade

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following packages will be upgraded:

  base-files gnupg gpgv grep libwbclient0 openssh-client openssh-server samba

  samba-common samba-common-bin tzdata

11 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Need to get 18.5 MB of archives.

After this operation, 295 kB of additional disk space will be used.

Get:1 http://ftp.us.debian.org/debian/ squeeze/main base-files armel 6.0squeeze8            [69.4 kB]

Get:2 http://ftp.us.debian.org/debian/ squeeze/main grep armel 2.6.3-3+squeeze1            [299 kB]

Get:3 http://ftp.us.debian.org/debian/ squeeze/main gpgv armel 1.4.10-4+squeeze3            [204 kB]

Get:4 http://ftp.us.debian.org/debian/ squeeze/main gnupg armel 1.4.10-4+squeeze           3 [2,105 kB]

Get:5 http://ftp.us.debian.org/debian/ squeeze/main tzdata all 2013d-0squeeze1 [           768 kB]

Get:6 http://ftp.us.debian.org/debian/ squeeze/main openssh-server armel 1:5.5p1           -6+squeeze4 [319 kB]

Get:7 http://ftp.us.debian.org/debian/ squeeze/main openssh-client armel 1:5.5p1           -6+squeeze4 [940 kB]

Get:8 http://ftp.us.debian.org/debian/ squeeze/main libwbclient0 armel 2:3.5.6~d           fsg-3squeeze10 [112 kB]

Get:9 http://ftp.us.debian.org/debian/ squeeze/main samba armel 2:3.5.6~dfsg-3sq           ueeze10 [7,539 kB]

Get:10 http://ftp.us.debian.org/debian/ squeeze/main samba-common all 2:3.5.6~df           sg-3squeeze10 [388 kB]

Get:11 http://ftp.us.debian.org/debian/ squeeze/main samba-common-bin armel 2:3.           5.6~dfsg-3squeeze10 [5,719 kB]

Fetched 18.5 MB in 1min 12s (255 kB/s)

Preconfiguring packages ...

(Reading database ... 12753 files and directories currently installed.)

Preparing to replace base-files 6.0squeeze7 (using .../base-files_6.0squeeze8_ar           mel.deb) ...

Unpacking replacement base-files ...

Processing triggers for man-db ...

Processing triggers for install-info ...

Setting up base-files (6.0squeeze8) ...

Installing new version of config file /etc/debian_version ...

(Reading database ... 12753 files and directories currently installed.)

Preparing to replace grep 2.6.3-3 (using .../grep_2.6.3-3+squeeze1_armel.deb) ..           .

Unpacking replacement grep ...

Processing triggers for install-info ...

Processing triggers for man-db ...

Setting up grep (2.6.3-3+squeeze1) ...

(Reading database ... 12753 files and directories currently installed.)

Preparing to replace gpgv 1.4.10-4+squeeze2 (using .../gpgv_1.4.10-4+squeeze3_ar           mel.deb) ...

Unpacking replacement gpgv ...

Processing triggers for man-db ...

Setting up gpgv (1.4.10-4+squeeze3) ...

(Reading database ... 12753 files and directories currently installed.)

Preparing to replace gnupg 1.4.10-4+squeeze2 (using .../gnupg_1.4.10-4+squeeze3_           armel.deb) ...

Unpacking replacement gnupg ...

Processing triggers for install-info ...

Processing triggers for man-db ...

Setting up gnupg (1.4.10-4+squeeze3) ...

(Reading database ... 12753 files and directories currently installed.)

Preparing to replace tzdata 2012g-0squeeze1 (using .../tzdata_2013d-0squeeze1_al           l.deb) ...

Unpacking replacement tzdata ...

Setting up tzdata (2013d-0squeeze1) ...


Current default time zone: 'Asia/Seoul'

Local time is now:      Fri Oct 25 00:52:03 KST 2013.

Universal Time is now:  Thu Oct 24 15:52:03 UTC 2013.

Run 'dpkg-reconfigure tzdata' if you wish to change it.


(Reading database ... 12762 files and directories currently installed.)

Preparing to replace openssh-server 1:5.5p1-6+squeeze3 (using .../openssh-server           _1%3a5.5p1-6+squeeze4_armel.deb) ...

Unpacking replacement openssh-server ...

Preparing to replace openssh-client 1:5.5p1-6+squeeze3 (using .../openssh-client           _1%3a5.5p1-6+squeeze4_armel.deb) ...

Unpacking replacement openssh-client ...

Preparing to replace libwbclient0 2:3.5.6~dfsg-3squeeze9 (using .../libwbclient0           _2%3a3.5.6~dfsg-3squeeze10_armel.deb) ...

Unpacking replacement libwbclient0 ...

Preparing to replace samba 2:3.5.6~dfsg-3squeeze9 (using .../samba_2%3a3.5.6~dfs           g-3squeeze10_armel.deb) ...

Stopping Samba daemons: nmbd smbd.

Unpacking replacement samba ...

Preparing to replace samba-common 2:3.5.6~dfsg-3squeeze9 (using .../samba-common           _2%3a3.5.6~dfsg-3squeeze10_all.deb) ...

Unpacking replacement samba-common ...

Preparing to replace samba-common-bin 2:3.5.6~dfsg-3squeeze9 (using .../samba-co           mmon-bin_2%3a3.5.6~dfsg-3squeeze10_armel.deb) ...

Unpacking replacement samba-common-bin ...

Processing triggers for man-db ...

Setting up openssh-client (1:5.5p1-6+squeeze4) ...

Setting up openssh-server (1:5.5p1-6+squeeze4) ...

Restarting OpenBSD Secure Shell server: sshd.

Setting up libwbclient0 (2:3.5.6~dfsg-3squeeze10) ...

Setting up samba-common (2:3.5.6~dfsg-3squeeze10) ...

Setting up samba (2:3.5.6~dfsg-3squeeze10) ...

Starting Samba daemons: nmbd smbd.

Setting up samba-common-bin (2:3.5.6~dfsg-3squeeze10) ...

/root $


결과물은 해당 NAS마다 다르므로, 똑같이 않다고 해서 뭔가 문제가 있다거나 그런 것은 아니니 안심하셔도 됩니다.




이제 웹데브 설치를 위해 아파치를 설치합니다. (apache2)


apt-get install apache2


위 명령어를 내리면 밑과 같은 결과가 나옵니다.



/root $ apt-get install apache2

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following extra packages will be installed:

  apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1

  libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap mime-support openssl

  ssl-cert

Suggested packages:

  www-browser apache2-doc apache2-suexec apache2-suexec-custom ca-certificates

  openssl-blacklist

The following NEW packages will be installed:

  apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common

  libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap mime-support

  openssl ssl-cert

0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.

Need to get 3,175 kB of archives.

After this operation, 9,486 kB of additional disk space will be used.

Do you want to continue [Y/n]? y

Get:1 http://ftp.us.debian.org/debian/ squeeze/main mime-support all 3.48-1 [34.2 kB]

Get:2 http://ftp.us.debian.org/debian/ squeeze/main libapr1 armel 1.4.2-6+squeeze4 [90.3 kB]

Get:3 http://ftp.us.debian.org/debian/ squeeze/main libaprutil1 armel 1.3.9+dfsg-5 [83.9 kB]

Get:4 http://ftp.us.debian.org/debian/ squeeze/main libaprutil1-dbd-sqlite3 armel 1.3.9+dfsg-5 [27.5 kB]

Get:5 http://ftp.us.debian.org/debian/ squeeze/main libaprutil1-ldap armel 1.3.9+dfsg-5 [25.4 kB]

Get:6 http://ftp.us.debian.org/debian/ squeeze/main apache2.2-bin armel 2.2.16-6+squeeze11 [1,358 kB]

Get:7 http://ftp.us.debian.org/debian/ squeeze/main apache2-utils armel 2.2.16-6+squeeze11 [172 kB]

Get:8 http://ftp.us.debian.org/debian/ squeeze/main apache2.2-common armel 2.2.16-6+squeeze11 [310 kB]

Get:9 http://ftp.us.debian.org/debian/ squeeze/main apache2-mpm-worker armel 2.2.16-6+squeeze11 [2,246 B]

Get:10 http://ftp.us.debian.org/debian/ squeeze/main apache2 armel 2.2.16-6+squeeze11 [1,402 B]

Get:11 http://ftp.us.debian.org/debian/ squeeze/main openssl armel 0.9.8o-4squeeze14 [1,055 kB]

Get:12 http://ftp.us.debian.org/debian/ squeeze/main ssl-cert all 1.0.28 [14.8 kB]

Fetched 3,175 kB in 15s (210 kB/s)

Preconfiguring packages ...

Selecting previously deselected package mime-support.

(Reading database ... 12762 files and directories currently installed.)

Unpacking mime-support (from .../mime-support_3.48-1_all.deb) ...

Selecting previously deselected package libapr1.

Unpacking libapr1 (from .../libapr1_1.4.2-6+squeeze4_armel.deb) ...

Selecting previously deselected package libaprutil1.

Unpacking libaprutil1 (from .../libaprutil1_1.3.9+dfsg-5_armel.deb) ...

Selecting previously deselected package libaprutil1-dbd-sqlite3.

Unpacking libaprutil1-dbd-sqlite3 (from .../libaprutil1-dbd-sqlite3_1.3.9+dfsg-5_armel.deb) ...

Selecting previously deselected package libaprutil1-ldap.

Unpacking libaprutil1-ldap (from .../libaprutil1-ldap_1.3.9+dfsg-5_armel.deb) ...

Selecting previously deselected package apache2.2-bin.

Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.16-6+squeeze11_armel.deb) ...

Selecting previously deselected package apache2-utils.

Unpacking apache2-utils (from .../apache2-utils_2.2.16-6+squeeze11_armel.deb) ...

Selecting previously deselected package apache2.2-common.

Unpacking apache2.2-common (from .../apache2.2-common_2.2.16-6+squeeze11_armel.deb) ...

Selecting previously deselected package apache2-mpm-worker.

Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.16-6+squeeze11_armel.deb) ...

Selecting previously deselected package apache2.

Unpacking apache2 (from .../apache2_2.2.16-6+squeeze11_armel.deb) ...

Selecting previously deselected package openssl.

Unpacking openssl (from .../openssl_0.9.8o-4squeeze14_armel.deb) ...

Selecting previously deselected package ssl-cert.

Unpacking ssl-cert (from .../ssl-cert_1.0.28_all.deb) ...

Processing triggers for man-db ...

Setting up mime-support (3.48-1) ...

update-alternatives: warning: forcing reinstallation of alternative /usr/bin/vim.tiny because link group view is broken.

update-alternatives: warning: skip creation of /usr/share/man/man1/view.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group view) doesn't exist.

update-alternatives: warning: skip creation of /usr/share/man/fr/man1/view.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group view) doesn't exist.

update-alternatives: warning: skip creation of /usr/share/man/it/man1/view.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group view) doesn't exist.

update-alternatives: warning: skip creation of /usr/share/man/pl/man1/view.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group view) doesn't exist.

update-alternatives: warning: skip creation of /usr/share/man/ru/man1/view.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group view) doesn't exist.

Setting up libapr1 (1.4.2-6+squeeze4) ...

Setting up libaprutil1 (1.3.9+dfsg-5) ...

Setting up libaprutil1-dbd-sqlite3 (1.3.9+dfsg-5) ...

Setting up libaprutil1-ldap (1.3.9+dfsg-5) ...

Setting up apache2.2-bin (2.2.16-6+squeeze11) ...

Setting up apache2-utils (2.2.16-6+squeeze11) ...

Setting up apache2.2-common (2.2.16-6+squeeze11) ...

Enabling site default.

Enabling module alias.

Enabling module autoindex.

Enabling module dir.

Enabling module env.

Enabling module mime.

Enabling module negotiation.

Enabling module setenvif.

Enabling module status.

Enabling module auth_basic.

Enabling module deflate.

Enabling module authz_default.

Enabling module authz_user.

Enabling module authz_groupfile.

Enabling module authn_file.

Enabling module authz_host.

Enabling module reqtimeout.

Setting up apache2-mpm-worker (2.2.16-6+squeeze11) ...

Starting web server: apache2apache2: apr_sockaddr_info_get() failed for squeezeplug

apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

.

Setting up apache2 (2.2.16-6+squeeze11) ...

Setting up openssl (0.9.8o-4squeeze14) ...

Setting up ssl-cert (1.0.28) ...

hostname: Name or service not known

make-ssl-cert: Could not get FQDN, using "squeezeplug".

make-ssl-cert: You may want to fix your /etc/hosts and/or DNS setup and run

make-ssl-cert: make-ssl-cert generate-default-snakeoil --force-overwrite

make-ssl-cert: again.

/root $


위 결과 중에 빨간색 부분 해결을 위해 밑의 명령어 실행합니다.


nano /etc/apache2/apache2.conf



혹시나 nano 명령어가 없다고 나오거나, 아무런 내용이 없을 땐, 위의 명령어를 직접 치면 됩니다.


그럼 엄청 많은 내용이 나오는데 제일 밑으로 가서


.

.

.

.

.

.


#

# The following directives define some format nicknames for use with

# a CustomLog directive (see below).

# If you are behind a reverse proxy, you might want to change %h into %{X-Forwarded-For}i

#

LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined

LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined

LogFormat "%h %l %u %t \"%r\" %>s %O" common

LogFormat "%{Referer}i -> %U" referer

LogFormat "%{User-agent}i" agent


# Include of directories ignores editors' and dpkg's backup files,

# see README.Debian for details.


# Include generic snippets of statements

Include conf.d/


# Include the virtual host configurations:

Include sites-enabled/


ServerName localhost



제일 밑에 ServerName localhost 추가 후 컨트롤 + O, y, 컨트롤 + X 를 누르면 저장 후 닫아집니다.


밑의 명령어로 아파치를 재실행합니다.


service apache2 restart


밑과 같은 반응이 나오면 성공


/root $ service apache2 restart

Restarting web server: apache2 ... waiting .

/root $




이제 웹데브 모듈을 추가합니다.


a2enmod dav_fs


밑과 같은 반응이 나오면 성공


/root $ a2enmod dav_fs

Considering dependency dav for dav_fs:

Enabling module dav.

Enabling module dav_fs.

Run '/etc/init.d/apache2 restart' to activate new configuration!

/root $


아파치를 재실행 합니다.


/etc/init.d/apache2 restart


밑과 같은 반응이 나오면 성공


/root $ /etc/init.d/apache2 restart

Restarting web server: apache2 ... waiting .

/root $



서버 보안을 위해 아파치 버전을 숨깁니다.


밑의 명령어를 내리면


nano /etc/apache2/conf.d/security


밑과 같은 많은 내용이 나오는데 빨간색 글자를 주의깊게 지켜보고 따라합니다.


#

# Disable access to the entire file system except for the directories that

# are explicitly allowed later.

#

# This currently breaks the configurations that come with some web application

# Debian packages.

#

#

#       AllowOverride None

#       Order Deny,Allow

#       Deny from all

#



# Changing the following options will not really affect the security of the

# server, but might make attacks slightly more difficult in some cases.


#

# ServerTokens

# This directive configures what you return as the Server HTTP response

# Header. The default is 'Full' which sends information about the OS-Type

# and compiled in modules.

# Set to one of:  Full | OS | Minimal | Minor | Major | Prod

# where Full conveys the most information, and Prod the least.

#

#ServerTokens Minimal

ServerTokens Prod

#ServerTokens Full


#

# Optionally add a line containing the server version and virtual host

# name to server-generated pages (internal error documents, FTP directory

# listings, mod_status and mod_info output etc., but not CGI generated

# documents or custom error documents).

# Set to "EMail" to also include a mailto: link to the ServerAdmin.

# Set to one of:  On | Off | EMail

#

ServerSignature Off

#ServerSignature On


#

# Allow TRACE method

#

# Set to "extended" to also reflect the request body (only for testing and

# diagnostic purposes).

#

# Set to one of:  On | Off | extended

#

TraceEnable Off

#TraceEnable On


컨트롤 + O, y, 컨트롤 + X 를 누르면 저장 후 닫아집니다.



이제 아파치 웹데브용 폴더를 생성합니다.


실제 웹데브 경로는 아니니, 경로를 신경 안쓰셔도 됩니다.


mkdir -p /var/www/web


위 명령어를 내리면 아무런 반응이 없습니다.



이제 data에게 소유권을 넘겨줍니다.


chown www-data /var/www/web


data에게 폴더의 소유권이 이전되었습니다.



이제 아파치 설정을 할 차례입니다.


기존 설정은 백업해둡니다.


mv /etc/apache2/sites-available/default /etc/apache2/sites-available/default_orig



그리고 새로 생성합니다.


nano /etc/apache2/sites-available/default


위의 명령어를 내리면 아무것도 없는 빈 화면이 나오는데 밑의 내용을 붙여서 저장합니다.



<VirtualHost *:80>

ServerAdmin webmaster@localhost

 

DocumentRoot /var/www/web

<Directory /var/www/web>

Options Indexes MultiViews FollowSymLinks

AllowOverride None

Order allow,deny

allow from all

</Directory>

 

</VirtualHost> 



컨트롤 + O, y, 컨트롤 + X 를 누르면 저장 후 닫아집니다.


그리고 아파치를 재가동합니다.


etc/init.d/apache2 reload



밑과 같은 반응이 나오면 성공


/root $ /etc/init.d/apache2 reload

Reloading web server config: apache2.

/root $



이제 웹데브 전용 아이디를 생성합니다.


htpasswd -c /var/www/.htpasswd 원하는아이디



밑과 같은 반응이 나오면 성공


/root $ htpasswd -c /var/www/.htpasswd 원하는아이디

New password:

Re-type new password:

Adding password for user 원하는아이디

/root $



아이디를 넣는 파일의 권한을 줍니다.


chown root:www-data /var/www/.htpasswd


아무런 반응이 없으면 정상



밑과 같이 파일의 권한을 수정합니다.


chmod 640 /var/www/.htpasswd




이제 본격적으로 웹데브 파일 경로 및 설정을 합니다.


nano /etc/apache2/sites-available/default


위의 명령어를 내려서


밑과 같이 만듭니다.



<VirtualHost *:80>

ServerAdmin webmaster@localhost

 

DocumentRoot /var/www/web

<Directory /var/www/web>

Options Indexes MultiViews FollowSymLinks

AllowOverride None

Order allow,deny

allow from all

</Directory>

 

Alias /webdav /mnt

<Location /webdav> 

DAV On

AuthType Basic

AuthName "webdav"

AuthUserFile /var/www/.htpasswd

Require user 원하는아이디

</Location>

 

</VirtualHost>


위에 갈색 부분을 추가하시고, mnt 부분이 실제 웹데브 공유폴더가 됩니다.


보통 외장하드 경로에 넣는데요, 전 그 상위 폴더에 넣어서 쓸데없이 외장하드가 깨어나지 않게 해두었습니다.


참고로 제 외장하드는 /mnt/pools/A/A0 에 마운트되어 있습니다.


그래서 편하게 하시려면 /mnt부분을 /mnt/pools/A/A0 로 바꾸시면 됩니다.


물론 잠에서 바로 깨어나니 절전모드 사용하시는 분들은 주의하시구요.


수정이 완료되면 컨트롤 + O, y, 컨트롤 + X 를 누르면 저장 후 닫아집니다.



아파치를 재가동합니다.


/etc/init.d/apache2 reload


밑과 같은 반응이 나오면 성공


/root $ /etc/init.d/apache2 reload

Reloading web server config: apache2.

/root $




그리고 웹데브 경로에 권한 설정을 해줘서 아무나 기록이 가능하게 합니다.


chmod -R 777 /mnt


저는 위와 같이 웹데브 경로에 해줬는데요


mnt 부분에 자신이 웹데브 공유폴더를 지정한 것을 넣으면 됩니다.


예를 들어 /mnt/pools/A/A0를 공유폴더로 지정하였다면


chmod -R 777 /mnt/pools/A/A0


라고 넣으면 되겠죠.



그리고 웹데브로 파일을 넣었을 때 권한 부분입니다.


echo umask 0 >>/etc/apache2/envvars


위와 같이 설정하면 다른 프로그램에서도 그 파일들을 수정할 수 있습니다.




이제 설정은 끝입니다.


포트포워딩만 하면 됩니다.



혹시 포트포워딩을 잘 모르신다면 제 강좌를 봐주세요 ^^ (강좌 링크)


보통은 80포트를 포트포워딩하면 되지만 전 쓰고있기 때문에 81로 해보겠습니다.




▲ 이렇게 설정해뒀구요.


네트워크드라이브 추가 할 때 (네트워크 드라이브 강좌 링크)



▲ 이렇게 주소를 넣으면 되지만...


이상하게 안되더군요 ㅠㅠ


그럼 포기하느냐? 그러면 안되죠 ^^;;




그래서 넷드라이브를 깔아서 써봅시다.


http://www.netdrive.net/index.html


위 링크에 들어가서 다운 받고 깔아봅시다.


개인에 한해서 무료이기 때문에 부담없이 쓰셔도 됩니다.




▲ 위에 이미지처럼 설정을 해줍니다.


전 81포트이기 때문에 저렇게 설정했구요. 일반적인 80포트라면 80으로 넣으면 됩니다.


ID, 비번은 아까 생성한 바로 그 계정을 넣으면 됩니다.



그러면 바로 내컴퓨터가 뜨면서 짠~~~



▲ 이렇게 네트워크 드라이브로 추가된 것을 확인할 수 있습니다.





▲ 다만 아쉽게도 512GB라고 인식을 하는군요 ㅠㅠ


그런데 별 신경 안쓰셔도 될 듯합니다.


속도는 외부라서 그런지 그렇게 잘 나오는 편은 아닙니다 ㅠㅠ 4MB/s 정도 나오는 듯 합니다. (외부 네트워크 기준)


그래도 편하게 추가해서 쓰실 수 있으므로 나쁜 선택은 아니라고 봅니다.


물론 FTP나 삼바에서는 풀속도가 나옵니다 ^^;;



그리고 윈도우에서 인식을 못할 뿐이지 기타 안드로이드의 웹데브 어플에서는 잘 인식하므로 


아이폰에서도 웹데브 형식을 지원하는 어플에서도 쓸 수있을 것 같습니다.



레퍼런스 글은 관련링크에 있으니 참고하시길 바랍니다.


이상 Iomega NAS에 웹데브 설치하기였습니다.

관련자료

댓글 0
등록된 댓글이 없습니다.
전체 99 / 1 페이지
RSS

최근글


새댓글


알림 0