virtual hosts
제가 virtual hosts를 이용해서 한개의 서버에 두개의 홈페이지를 띄우고 싶픈데
아직 명령어랑 리눅스에 대해서 많이 몰라서요
조언좀 얻고 싶습니다 ...
조언좀 해주실분 계신가 해서 이렇해 글 올립니다 ...ㅜ
[이 게시물은 관리자님에 의해 2011-10-31 17:32:05 Linux에서 이동 됨]
댓글 1개
haejuksun
14년 전
httpd.conf 에 include /usr/local/apache/conf/vhosts.conf
추가하시고,
NameVirtualHost x.x.x.x:80
<VirtualHost x.x.x.x:80>
ServerAdmin xxx@x.x.x.x
DocumentRoot /xxx/xxx
ServerName www.xxx.xxx
ServerAlias xxx.xxx
CustomLog logs/xxx.xxx-log common
</VirtualHost>
추가하시고,
NameVirtualHost x.x.x.x:80
<VirtualHost x.x.x.x:80>
ServerAdmin xxx@x.x.x.x
DocumentRoot /xxx/xxx
ServerName www.xxx.xxx
ServerAlias xxx.xxx
CustomLog logs/xxx.xxx-log common
</VirtualHost>
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기