次を使用して、wwwディレクトリ内のすべてのWebサイトを自動化するために、vhosts confをセットアップしました
<VirtualHost *:80>
ServerAdmin webmaster@%0
ServerName %0
ServerAlias %0
VirtualDocumentRoot C:/wamp/www/%0/httpdocs
</VirtualHost>
これはすべて問題なく動作しますが、%0 変数を使用してカスタム ログ ディレクトリを追加したいと考えています。やってみた
<VirtualHost *:80>
ServerAdmin webmaster@%0
ServerName %0
ServerAlias %0
VirtualDocumentRoot C:/wamp/www/%0/httpdocs
ErrorLog C:/wamp/www/%0/logs/errors.log
CustomLog C:/wamp/www/%0/logs/access.log common
</VirtualHost>
ただし、これは機能しません。起動時にApacheエラーが発生します
(OS 3)The system cannot find the path specified. : httpd.exe: could not open error log file C:/wamp/www/%0/logs/errors.log.
vhost エントリーを調整して、このロギング方法を許可するにはどうすればよいですか?
ありがとう