httpd.conf 에서
scriptAlias 와 AliasMatch 를 사용합니다.
======================================================================
계정이 armines 라고 하면
http://아이피/~armines
가 되겠죠?
scriptAlias /armines/ /home/armines/public_html 해주시면
http://아이피/armines
이 방식은 www 에서 http://아이피/armines 라고 하면, /home/armines/public_html 로 연결해주는겁니다. 말그대로 alias(별칭) 인거죠.
=====================================================================
위와 같이 동일하게 모든 사용자에게 scriptAlias 를 해줘도 되지만, 너무 번거롭죠?
====================================================================
AliasMatch ^/([a-zA-Z0-9]*)/?(.*) /home/$1/public_html/$2
해주시면..
http://아이피/userID/index.html 이라고 하면, 실지로는 /home/userID/Public_html/index.html 로 연결해주는거죠.
=====================================================================
'스크랩 강좌/팁 > 리눅스' 카테고리의 다른 글
| * CDROM 마운트 (0) | 2009/10/28 |
|---|---|
| 리눅스 서버의 종료 및 재시작 (0) | 2009/10/28 |
| 리눅스 압축 명령 (0) | 2009/10/28 |
| [팁] mysql root password 분실했을 때 (0) | 2009/10/28 |
| 계정 생성시 기본자동셋팅되는 디렉토리와 파일위치 (0) | 2009/10/28 |
| 리눅스 apache서버에서 사용자계정 url주소수정 (0) | 2009/10/28 |




댓글을 달아 주세요