Move apache config files

Is it possible to use a different location for the apache config files (on Windows)? Except that it has to compile it by itself and set the correct #define HTTPD_ROOT.

thanks rezna

+1


source to share


1 answer


This can be done by specifying a parameter -f

when installing apache as a service on Windows.

The parameter -f

takes the location of the configuration file. For example, if your command to install the service was

httpd.exe -k install -n "MyServiceName"


Add -f "c:\files\my.conf"

with your config file for example:

httpd.exe -k install -n "MyServiceName" -f "c: \ files \ my.conf"

See Apache manual for details .

+3


source







All Articles