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 로 연결해주는거죠.
 
=====================================================================

Posted by ♡ 민군 ♡

댓글을 달아 주세요