Re: [users@httpd] how can I add SERVER_NAME to a filename

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes - I think it is possible.

This is part of the apache official httpd.conf file:

#<VirtualHost *:80>
#    ServerAdmin webmaster@xxxxxxxxxxxxxxxxxxxxxx
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log
#    CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common
#</VirtualHost>

Not the last entries for the log files.
I don't know how they implement it though.
Are they some sort of environment, or CGI variables?
Maybe someone else knows?

I'd be interested to know how it is done.

Keith


On Mon, 2 Jan 2006, robert rottermann wrote:

> To: users@xxxxxxxxxxxxxxxx
> From: robert rottermann <robert@xxxxxxxxx>
> Subject: Re: [users@httpd] 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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux