질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

user_dir 경로수정방법

작성자 정보

  • 참치죽 작성
  • 작성일

컨텐츠 정보

본문

1.web folder 유져 폴더 설정부분에서 경로를 최상위폴더로 한다(/home/id/public_html  -> /home/id)

2.http://aaa.com/~id   --> http://aaa.com/id 로 url가능하도록한다.

<IfModule mod_userdir.c>
    UserDir <-- 이부분을 public_html이나 기타의경로가 아닌 그냥 절대경로 /home/hosting/id/ 이렇게.. 

</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/hosting/*/>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>
~

ScriptAlias /cn/ "/home/hosting/cn/"

~

방법을 아시는분 부탁드립니다.

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,043 명
  • 현재 강좌수 :  35,853 개
  • 현재 접속자 :  79 명