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


Click here to return to the 'Restoring the Apache config file after 10.2.4 update' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Restoring the Apache config file after 10.2.4 update
Authored by: usa35 on Feb 19, '03 02:11:40PM

Sorry, but you guys really need to think before you speak.

Some of us actually have a strong NEED or DESIRE to modify the original file. The biggest reason for me is some code that I've developed practically requiring me to not be using my user directory (e.g. ".../~[user]/...") in the URL when testing on localhost.

Sure, there may be (actually, there are) some ways I can code around this, but it is by far less of a hassle to modify httpd.conf and deal with the occassional Apple update mangling, than to allowing user dirs and making user-specific modifications... And since I'm on a laptop that only I use, I will likely never need to allow site access for other user dirs.

FileMerge is the best way to update the new file with modification from your old one.



[ Reply to This | # ]
Restoring the Apache config file after 10.2.4 update
Authored by: Stefus on Feb 19, '03 03:04:35PM

To clarify: You can put ANY httpd.conf-option in *.conf-files within /private/etc/httpd/users regardless of the /~user/-function.



[ Reply to This | # ]
Restoring the Apache config file after 10.2.4 update
Authored by: ScooterComputer on Feb 19, '03 11:49:26PM
Speaking of thinking before speaking...

Directives included in the /private/httpd/users/*.conf files have no particular bearing on ~user homes. The files placed there by the system (through account creation in the Users PrefPane) DO HAPPEN to house the Directory directives for the users, but that is not CAUSE, that is EFFECT. I am using several VirtualHosts.conf files in there as well that point all over my drive (the Shared folder as well as a VirtualHosts folder), including setting up an SSL-protected WebDAV share point.

[ Reply to This | # ]

Add this to /etc/httpd/users/php.conf
Authored by: shmert on Feb 21, '03 12:33:08PM
An example might help, this is the file I use to enable PHP. Didn't have to change a thing after updating to the newest OS X.
LoadModule php4_module        libexec/httpd/libphp4.so
AddModule mod_php4.c


    DirectoryIndex index.html index.php index.php3



    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps



[ Reply to This | # ]
Add this to /etc/httpd/users/php.conf
Authored by: shucks on Feb 22, '03 08:43:59PM

I am wondering whether if you have a user named php then this will break?

---
He Travels Far Who Travels Alone, If He Knows The Way That Is



[ Reply to This | # ]
Add this to /etc/httpd/users/php.conf
Authored by: ScooterComputer on Feb 24, '03 11:51:36AM

No, not unless you create a file named php.conf in the /etc/httpd/users folder, and then create the PHP user using the Users PrefPane. I have never tried doing this, so I don't know what happens...that's why it would be smart to use a filename that is pretty unique (like 1stoverrides.conf).

Otherwise, the only thing these "user" configs do is make a Directory directive pointing to users' Sites folder...simply take a look at them.



[ Reply to This | # ]