I’m looking for a way to programatically detect the location of the Apache config directory, and the name of the configuration file. Bonus points if this is in Ruby or Bash.
I’m looking for a way to programatically detect the location of the Apache config
Share
Location and name of the config file is determined during compilation, so if you look at compilation settings you will be able to determine it
will show you a line like this
so in ruby you can extract it with something like this: