우분투 환경 /etc/apache2/sites-available/default 수정
소스컴파일 환경에선 httpd.conf 또는 httpd-vhosts.conf 라던지..거기서 설정…기억안남;;
NameVirtualHost *:80
# www 셋팅
<VirtualHost *:80>
ServerAdmin ruo91@naver.com
ServerAlias yongbok.com www.yongbok.com
DocumentRoot /home/www/
ErrorLog /home/apache2-log/www-error.log
LogLevel warn
SetEnvIf Remote_Addr 192.168.0.2$ do_not_log
CustomLog /home/apache2-log/www-access.log combined env=!do_not_log
ServerSignature On
<Directory “/home/www/”>
Options FollowSymLinks
AllowOverride FileInfo
</Directory>
</VirtualHost>
#
# blog 셋팅
<VirtualHost *:80>
ServerAdmin ruo91@naver.com
ServerAlias blog.yongbok.com
DocumentRoot /home/blog/
ErrorLog /home/apache2-log/blog-error.log
LogLevel warn
# SetEnvIf Remote 특정 아이피주소에서 접근시 로그를 남기지 않음
SetEnvIf Remote_Addr 192.168.0.2$ do_not_log
CustomLog /home/apache2-log/blog-access.log combined env=!do_not_log
ServerSignature On
<Directory “/home/blog/”>
Options FollowSymLinks
AllowOverride FileInfo
</Directory>
</VirtualHost>