バーチャルホスト

NameVirtualHost *:80 は2.4で廃止

/usr/local/apache##/httpd.confに以下を記述

LoadModule vhost_alias_module modules/mod_vhost_alias.so

vhostの設定

<VirtualHost server1:80>
    DocumentRoot "/usr/local/www/server1/public_html"
    ServerName   server1
    ErrorLog     "|  /usr/local/sbin/rotatelogs /var/log/httpd/server1/error_log  86400"
    CustomLog    "|  /usr/local/sbin/rotatelogs /var/log/httpd/server1/common_log 86400" common

    <Directory "/var/www/server1/public_html">
         Require all granted
    </Directory>
</VirtualHost>