Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.
1. /etc/apache2/mods-enabled로 이동한다.
cd /etc/apache2/mods-enabled
2. symbolic link를 생성한다.
ln -s ../mods-available/userdir.conf
ln -s ../mods-available/userdir.load
3. 수정내용을 반영해준다.
service apache2 restart
#참고 : Document Root를 public_html이 아닌 다른 명칭의 경로를 사용하는 경우 아래와 같이 변경해준다.
-----------------------mods-enable/userdir.conf-----
<IfModule mod_userdir.c>
        #UserDir public_html
        UserDir www
        UserDir disabled root
        #<Directory /home/*/public_html>
        <Directory /home/*/www>
                AllowOverride FileInfo AuthConfig Limit Indexes
                Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
                <Limit GET POST OPTIONS>
                        Require all granted
                </Limit>
                <LimitExcept GET POST OPTIONS>
                        Require all denied
                </LimitExcept>
        </Directory>
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
4. 사용자계정을 생성및 경로/권한을 생성한다.
가. useradd gdime
나. passwd gdime
다. home경로 생성 : mkdir /home/gdime
라. Document Root경로 생성 : mkdir /home/gdime/www
마. home경로 권한 설정
chmod 711 /home/gdime
  바. Document Root경로 권한 설정
    chmod -R 755 /home/gdime/www
 
						