Can you tell the path of Apache in httpd.conf?

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

 



A related question to the one I posted earlier about env variables.

In my httpd.conf, I want to setup some custom error logs for my application, using a statement like this:

ErrorLog "|[apachepath]/bin/rotatelogs.exe -l [apachepath]/logs/error_blah.log 86400"

The problem is that I would have to hardcode the apachepath, which is something I want to avoid (since it may vary on different dev machines).

Is there a way to know what that is?

The only way we have found to do this is to use <Perl> sections with statements like these:

---
  	my $path_to_logs = catfile Apache2::ServerUtil::server_root, qw(logs);
  	my $path_to_bin = catfile Apache2::ServerUtil::server_root, qw(bin);
---

It works, but I would prefer a solution that does not involve <Perl> sections (since they are harder to read and debug).

Thx.

Alain Désilets
Agent de recherche | Research Officer 
Institut de technologie de l'information | Institute for Information Technology Conseil national de recherches du Canada | National Research Council of Canada


---------------------------------------------------------------------
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