apache vhost 설정
● 도메인 기준(같은 포트, 다른 도메인)
● 포트 기준(다른 포트, 다른 도메인) : apache 멀티포트 서비스
//ports.conf 열기
Listen 80
Listen 8888 (추가)
Listen 8000 (추가)
#<Directory "/usr/local/cafe24/apache/htdocs">
# Options Indexes FollowSymLinks
# AllowOverride None
# Order allow,deny
# Allow from all
#</Directory>
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
NameVirtualHost *:8888 추가
포트별 VirtualHost설정
NameVirtualHost *:80 (최신 아파치 2.4에서 필요없는 줄)
NameVirtualHost *:8888 (최신 아파치 2.4에서 필요없는 줄)
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/usr/local/cafe24/apache/htdocs"
ErrorLog "logs/localhost.80-error_log"
CustomLog "logs/localhost.80-access_log" common
<Directory "/usr/local/cafe24/apache/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
JkMountFile conf/uriworkermap.properties
</VirtualHost>
<VirtualHost *:8888>
ServerAdmin [email protected]
DocumentRoot "/home/django/python_ch3"
ErrorLog "logs/localhost.8888-error_log"
CustomLog "logs/localhost.8888-access_log" common
<Directory "/home/django/python_ch3">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
** tomcat 연동과 함께 할 경우
JkMountFile 설정은 VirtualHost에 할 것!!!!
httpd.conf 주석 처리
# JkMountFile conf/uriworkermap.properties