Webサーバーには多くの仮想ホストがセットアップされており、それぞれに独自のエラーとアクセスログがあります。関連する行httpd.conf
は次のようなものです。
ErrorLog /var/log/httpd-error.log
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog /var/log/httpd-access.log combined
NameVirtualHost *:80
<VirtualHost *:80>
ServerName myhost.com
ServerAlias www.myhost.com
DocumentRoot /var/www/myhost.com/htdocs
ErrorLog /var/www/myhost.com/log/error.log
CustomLog /var/www/myhost.com/log/access.log combined
</VirtualHost>
# ... many more VirtualHosts
現在、/ var / log / httpd-error.logでランダムエラーが発生していますが、/ var / log / httpd-access.logで何も取得されていません。すべてのアクセスとエラーを共有ログファイルに複製することは可能ですか?すべての単一のVirtualHostに新しいエントリを追加せずにこれを行うことは可能ですか?