Linux

apache-2.2.0 에서 사용자별 public_html 인식되도록~

마니씨 2010. 1. 11. 16:19
# vi /apm/apache/conf/httpd.conf
을 열어서 아래 줄을 찾는다.

# User home directories
#include conf/extra/httpd-userdir.conf

의 밑에 줄에 아래를 추가한다.

UserDir public_html

public_html 디렉터리의 퍼미션을 711 로 설정한다.

# /apm/apache/bin/httpd -t
Syntax OK

-> 로 문법 검사를 실행하고

# /apm/apache/bin/apachectl restart

이렇게 서비스 재시작하면 바로 적용된다!고 하였지만 권한 문제로 페이지가 열리지 않는 문제가 발생하였다 ㅠㅠ

# vi /apm/apache/conf/httpd.conf
를 열어서

Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all

라고 써있던 부분의 순서등등을 바꿔 주었다.

Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

요렇게 하니까 된다 ㅠㅠ