vhost 파일 내용
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName 도메인명
ServerAlias 서브도메인명
DocumentRoot /홈디렉토리/
<Directory /홈디렉토리/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
deny from xxx.xxx.xxx.xxx
</Directory>
ErrorLog /var/log/apache/test.com-error_log
CustomLog /var/log/apache/test.com-access_log common
</VirtualHost>
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName 도메인명
ServerAlias 서브도메인명
DocumentRoot /홈디렉토리/
<Directory /홈디렉토리/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
deny from xxx.xxx.xxx.xxx
</Directory>
ErrorLog /var/log/apache/test.com-error_log
CustomLog /var/log/apache/test.com-access_log common
</VirtualHost>