Apache Lounge


About Forum Index Downloads Search Register Log in  RSS Apache Lounge  

Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.



A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.

Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: guide to externalizing instance config?

Joined: 29 Mar 2019
Posts: 1

PostPosted: Mon 01 Apr '19 15:19    Post subject: guide to externalizing instance config? Reply with quote

I'm looking for a clean way of separating an instance configuration, so I can keep my setup separate from the actual application. I'm looking for a guide or some guidance on the things I need to do to achieve that. For example, I know I can specify the base httpd.conf file with a -f switch. And it looks like I can specify the instance using the ServerRoot directive. Or, maybe it doesn't work that way, since that sets where the modules are loaded from. Any suggestions?
Back to top
James Blond

Joined: 19 Jan 2006
Posts: 6822
Location: Germany, Next to Hamburg

PostPosted: Tue 02 Apr '19 15:31    Post subject: Reply with quote

You could define the needed values in different file and include that

Define SRVROOT "/Users/james/Apache24"

Include path/to/define_file.conf
ServerRoot "${SRVROOT}"

I also include a file where I define the loading the modules.


Include conf/modules.conf


   #LoadModule access_compat_module modules/mod_access_compat.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
   #LoadModule allowmethods_module modules/mod_allowmethods.so
   #LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
   #LoadModule auth_digest_module modules/mod_auth_digest.so
   #LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_core_module modules/mod_authn_core.so
# .... etc etc
Back to top

Reply to topic   Topic: guide to externalizing instance config? View previous topic :: View next topic
Post new topic   Forum Index -> Apache