유저별홈디렉터리

    Apache(아파치)서버 유저별 디렉터리 설정법

    아파치 유저별 디렉터리 설정 사용자 디렉터리 모듈 활성화 sudo a2enmod userdir 웹서버 재시작으로 모듈 반영 systemctl restart apache2 유저 디렉터리(~)에서 폴더 생성 후 인덱스 파일로 테스트를 해보면 끝난다. mkdir public_html vi public_html/index.html 접속링크 192.168.4.200/~유저이름 이후에는 웹서버 기본 디렉터리 설정에 관한 것이다. 웹서버 기본 디렉터리 설정 모듈 활성화가 되면 /etc/apache2/mods-enabled 디렉터리에 심벌릭 링크가 생성될 것이다.(userdir.conf, userdir.load) vi 에디터로 userdir.conf를 수정한다. UserDir public_html // 사용자 웹서버 ..