아파치 환경 설정에서...

익명 사용자의 이미지

아파치를 1.3.20 을 컴파일해서 설치하니 사용자의 기본 웹 디렉토리가
public_html로 설정이 되어 있더군요.

이것을 사용자의 홈 디렉토리로 바꾸려면 어떻게 해야 되는 건지?

public_html을 지우고 ~를 적어 봤습니다만 아닌 것 같네요...
별로 중요한 문제가 아니기 때문인지 Q&A에서 같은 내용을 찾지 못해서
여기 올립니다.

익명 사용자의 이미지

[답변] 홈디렉토리 바꾸기

....apache/conf/httpd.conf 를 열어보면

----------------------------------------------------------------------------
# DocumentRoot The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/usr/local/apache/htdocs"
----------------------------------------------------------------------------
이런 비슷한 내용이 있습니다.

DocumentRoot "/usr/local/apache/htdocs" 를 주석처리 한 후
디렉토리를 원하시는 곳으로 설정하시면 됩니다.

ex)

# DocumentRoot The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
#DocumentRoot "/usr/local/apache/htdocs"
DocumentRoot "/home/wondory/public_html"