Robert,
AFAIK the %{SERVER_NAME} variable is only available to mod_rewrite so what you
suggest is not doable.
So you can either follow the User's guide and add %v (the name of the virtual
host) to each log entry in your access log at the server level, and then split
that one log file into one log file per virtual host, or you can keep the
CustomLog directive in each VH and just use the correct path since you know the
server name anyway.
On the other hand, maybe you have not been quite clear about why you want to
use a variable, or exactly what you want to achieve?
-ascs
-----Original Message-----
From: robert rottermann [mailto:[EMAIL PROTECTED]
Sent: Monday, January 02, 2006 7:02 PM
To: [email protected]
Subject: Re: [EMAIL PROTECTED] how can I add SERVER_NAME to a filename
keith,
thank you very much for your answer.
I was a bit unclear. I know that I can name the files like this
CustomLog /var/log/apache2/projekte2.fh-aargau.ch/com_log combined
however I would like to have the "projekte2.fh-aargau.ch" part replaced by a
variable.
Is this possible?
somehow %{SERVER_NAME} must be known as I use it in a rewrite rule.
thanks
robert
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]