Virtual Hosts設定
先日見つけたサンプルファイルを元に、ヴァーチャルホストを設定しました。以下簡易メモ。
# vi /etc/httpd/conf.d/httpd-vhosts.conf
:
(中略)
<VirtualHost *:80>
ServerAdmin administrator@dukehide.dip.jp
DocumentRoot "/var/www/html/public_html"
ServerName dukehide.dip.jp
ServerAlias dukehide.dip.jp
ErrorLog "/var/log/httpd/error_log"
CustomLog "/var/log/httpd/access_log" combined env=!no_log
</VirtualHost>
<VirtualHost *:80>
ServerAdmin administrator@dukehide.mydns.jp
DocumentRoot "/var/www/html/virtual_html"
ServerName dukehide.mydns.jp
ErrorLog "/var/log/httpd/virtual-error_log"
CustomLog "/var/log/httpd/virtual-access_log" combined env=!no_log
Alias /awstatsreport /var/www/html/virtual_html/awstatsreport
</VirtualHost>
:
(中略)
<VirtualHost *:80>
ServerAdmin administrator@dukehide.dip.jp
DocumentRoot "/var/www/html/public_html"
ServerName dukehide.dip.jp
ServerAlias dukehide.dip.jp
ErrorLog "/var/log/httpd/error_log"
CustomLog "/var/log/httpd/access_log" combined env=!no_log
</VirtualHost>
<VirtualHost *:80>
ServerAdmin administrator@dukehide.mydns.jp
DocumentRoot "/var/www/html/virtual_html"
ServerName dukehide.mydns.jp
ErrorLog "/var/log/httpd/virtual-error_log"
CustomLog "/var/log/httpd/virtual-access_log" combined env=!no_log
Alias /awstatsreport /var/www/html/virtual_html/awstatsreport
</VirtualHost>
今のところ(というかこの先?)ヴァーチャルホスト側を何に使うかは未定です (・ω・)