Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Smart modification of httpd.conf for easier updating' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Smart modification of httpd.conf for easier updating
Authored by: jpf on Jul 07, '03 10:30:22PM
just one caution about making changes by the inclusion method:

while this is a good method in general to keep things separated, especially for different directory and virtual server configs, etc., everyone should be aware that, at least in apache 1.3 (haven't played with 2.0 much, so i'm not sure in that case), some things in the conf file must appear in a certain order. for example, note the following comment in the LoadModule section in the default version of the file:


# Note: The order in which modules are loaded is important.  Don't change
# the order below without expert advice.
also, in general, any module-specific config commands have to come after AddModule directives, which have to come after the corresponding LoadModule directives.

it seems that, philosophically, the {Load|Add}Module directives are "meant" to apply to the entire server (i.e. generally), and any logically separated config stuff (i.e. that in different files, perhaps included at the end of the main httpd.conf) is "meant" to be targeted on a more specific level.

i'm not saying that you can't do what TvE described, just that you should be careful about what you put where, and in what order. personally, i prefer the diff (or FileMerge) method mentioned by robg. i actually have a lengthy checklist of everything i have to do every time there's a major system upgrade ... i find it a useful tool to keep from forgetting one or more important mods. and of course, one of the items is "fix httpd.conf" ...

[ Reply to This | # ]

Smart modification of httpd.conf for easier updating
Authored by: TvE on Jul 08, '03 05:23:36AM

jpf makes some pretty good points there(!)
I believe that the changes that I have implemented so far are "safe", but for my future changes I definetly have to follow up on the load-order scenario ;-)

PS.: jpf - would you like to describe a little more about what other stuff you manually have to go through after an Apple update. There might be some wizdom that can save us som grey hair and long nights...

- TvE



[ Reply to This | # ]
Smart modification of httpd.conf for easier updating
Authored by: jpf on Jul 10, '03 12:14:35AM
TvE wrote:
PS.: jpf - would you like to describe a little more about what other stuff you manually have to go through after an Apple update. There might be some wizdom that can save us som grey hair and long nights...
i would include my "mad kustom of r-n-r" file directly in this post, but it's rather lengthy, and perhaps not of general interest to everyone reading this thread. however, i will offer the link above, both by way of kind-of-sort-of explanation of the file's name, and as a means of access for those interested in checking it out.

a word of warning: it's probably not really that interesting, being in the form mostly of notes to myself, and pertaining, naturally, only to my own needs. but maybe some folks will find something useful in it.

-jf

[ Reply to This | # ]