Re: Is there a shell environment variable to direct httpd to a httpd.conf ?

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

 



On Fri, Nov 20, 2015 at 4:03 PM, Christopher Schultz <chris@xxxxxxxxxxxxxxxxxxxxxx> wrote:
Gary,

On 11/20/15 4:44 PM, Gary M wrote:
> I'm in a unique configuration dilemma where I need to place the location
> of httpd.conf in a "soft" location. eg the shell environment variable.
>
> I did look and cannot find the answer.
>
> The question: "is there a shell environment variable read by httpd
> pointing to the conf file ? "
>
> This is windows,, I have another solution for linux and solaris.

Can you do:

C:\> \path\to\bin\httpd -f %HTTPD_DOT_CONF%

Note also that any -f, -d, -D args you pass to httpd install on Windows sets up the service with those values.

If interpolation is on for the startup arg in the nt registry, then you should be able to honor envvar substitution, but note that envvar substition for services is based on the envvars at *boot time*.  Changing them globally or per-user and restarting the service will not affect the services environment until you reboot. 


[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