Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > OS X 10.2.4 replaced my httpd.conf

OS X 10.2.4 replaced my httpd.conf
Thread Tools
Junior Member
Join Date: Feb 2002
Location: paris
Status: Offline
Reply With Quote
Feb 13, 2003, 06:50 PM
 
It was copied as httpd.conf.applesaved in /etc/httpd/
After a moment of panic, it was easy to fix, but why did they do that?
Did this happen to anyone else?
     
Grizzled Veteran
Join Date: Aug 2002
Location: Central Texas
Status: Offline
Reply With Quote
Feb 13, 2003, 07:07 PM
 
They do it almost every update. You're actually NOT supposed to edit the httpd.conf. Instead, there is a directive at the bottom of the Apple httpd.conf that calls a user.conf type thing where all your directives should go. Those directives override the apple ones.

I haven't done this myself, but read about it in past forums. Maybe a search might help.
     
Mac Elite
Join Date: Oct 2000
Location: Caracas, Bolivarian Republic Of Venezuela
Status: Offline
Reply With Quote
Feb 13, 2003, 07:38 PM
 
Originally posted by nutbits:
After a moment of panic, it was easy to fix, but why did they do that?
Did this happen to anyone else?
Because they added a rendezvous module for apache, which also needs its own directives.

Contra a barbárie, o estudo; Contra o individualismo, a solidariedade!
     
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Feb 13, 2003, 09:38 PM
 
The installer backed up my old conf file to /etc/httpd/httpd.conf.applesaved .

On a similar note: does anyone know what the directives for mod_rendezvous_apple are?
[Wevah setPostCount:[Wevah postCount] + 1];
     
Mac Elite
Join Date: Oct 2000
Location: Caracas, Bolivarian Republic Of Venezuela
Status: Offline
Reply With Quote
Feb 13, 2003, 10:56 PM
 
Originally posted by Wevah:
does anyone know what the directives for mod_rendezvous_apple are?
RegisterDefaultSite
Optionally, specify a port or keyword main; defaults to 80

RegisterUserSite username
Specify a user name or the keyword all-users, optionally followed by a port or keyword main; default is 80

RegisterResource
Specify a path and a name under which to register, optionally followed by a port or keyword main; default is 80

Contra a barbárie, o estudo; Contra o individualismo, a solidariedade!
     
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Feb 13, 2003, 11:28 PM
 
Sweet; thanks!
[Wevah setPostCount:[Wevah postCount] + 1];
     
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Feb 13, 2003, 11:33 PM
 
Just out of curiosity, where did you grab that info from?
[Wevah setPostCount:[Wevah postCount] + 1];
     
Mac Elite
Join Date: Oct 2000
Location: Caracas, Bolivarian Republic Of Venezuela
Status: Offline
Reply With Quote
Feb 14, 2003, 01:21 AM
 
Originally posted by Wevah:
Just out of curiosity, where did you grab that info from?
Code:
strings /usr/libexec/httpd/mod_rendezvous_apple.so | tail

Contra a barbárie, o estudo; Contra o individualismo, a solidariedade!
     
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Reply With Quote
Feb 14, 2003, 04:51 PM
 
Originally posted by alex_kac:
They do it almost every update. You're actually NOT supposed to edit the httpd.conf. Instead, there is a directive at the bottom of the Apple httpd.conf that calls a user.conf type thing where all your directives should go. Those directives override the apple ones.
Funny you should mention that, cause i just posted this to the MacOS X forum:

Originally posted by DaveGee:
I really wish Apple would stop overwriting custom config files (like http.conf)... I've learned to live with it by making a copy (called http.conf.MINE) so now it's just second nature to just put back my config but sheech it gets annoying.
Notice the last line of Apple's http.conf file:

Include /private/etc/httpd/users

That's intended to load http.conf customizations for individual users on your Mac. What it does, effectively, is append every file in the directory /private/etc/httpd/users/, in alphabetical order, to your /etc/httpd/httpd.conf file. So if you place a file containing only the customizations you would otherwise make to /etc/httpd/httpd.conf in the directory /private/etc/httpd/users/, your customizations will always be in effect without ever editing your /etc/httpd/httpd.conf file. Slick, eh?

Important safety tip: Every file in /private/etc/httpd/users/ is appended to your /etc/httpd/httpd.conf file, even files with suffixes like ".bak", so keep your backup files in another directory, else they are likely to override the changes you're making in your primary file (e.g. my.httpd.conf.bak would load after my.httpd.conf, which might undo the edits you've made and send you off chasing your tail for hours while trying to figure out why the changes you're making don't seem to work properly -- of course i was never caught by this snare! ).
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:39 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2