반응형
Linux Server를 FTP 가 아닌 일반 http로 접근하여, 파일을 다운로드 할 수 있다.이런것들이 가능할려면 UserDir가 각 유저마다
생성되어야 한다.

아래 방법을 보고 따라하면된다.


1. userdir 편집

$ vim /etc/apache2/mods-available/userdir.conf

  1 <IfModule mod_userdir.c>
  2         UserDir public_html  ==> 요기부분을 사용자가 원하는데로 변경한다.
  3         UserDir disabled root
  4
  5         <Directory /home/*/public_html>
  6                 AllowOverride FileInfo AuthConfig Limit Indexes
  7                 Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  8                 <Limit GET POST OPTIONS>
  9                         Order allow,deny
 10                         Allow from all
 11                 </Limit>
 12                 <LimitExcept GET POST OPTIONS>
 13                         Order deny,allow
 14                         Deny from all
 15                 </LimitExcept>
 16         </Directory>
 17 </IfModule>
 18


2. Symbolic Link 작업을 진행한다.

# cd /etc/apache2/mods-enabled
# ln -s /etc/apache2/mods-available/userdir.load .
# ln -s /etc/apache2/mods-available/userdir.conf .

3. Apache 서버를 재시작한다.

$ sudo /etc/init.d/apache2 restart
 * Restarting web server apache2                                                                                                                                                                                             
                                                                                                                                                                                                                      [ OK ]


4. 웹브라우져로 확인한다.

http://서버아이피/~아이디/



                                                                                     - 2010.10.18 랑이씀 -


반응형

+ Recent posts