|
|
Authorization problem?
I had some trouble because I didn't follow the procedure to a "T". I attempted to use the authorization stuff I'm familiar with and already use at work on sun machines. instead of doing this line:
htpasswd -m -c /etc/httpd/.htpasswd userI didn't use the -m and I used my existing .htpasswd file in my home directory. (And yes, I changed the specifiied location in the Directory tag.) When I restarted apache, everything appeared fine, but I couldn't publish. I later discovered that apache wasn't running. here's what the error log had to say: Processing config directory: /private/etc/httpd/users Processing config file: /private/etc/httpd/users/amy.conf Processing config file: /private/etc/httpd/users/marti.conf Processing config file: /private/etc/httpd/users/rob.conf Processing config file: /private/etc/httpd/users/yet.conf [Mon Feb 17 11:54:11 2003] [warn] pid file /private/var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Mon Feb 17 11:54:11 2003] [notice] Apache/1.3.27 (Darwin) DAV/1.0.3 configured -- resuming normal operations [Mon Feb 17 11:54:11 2003] [notice] Accept mutex: flock (Default: flock) [Mon Feb 17 11:54:11 2003] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive [Mon Feb 17 11:54:12 2003] [alert] Child 731 returned a Fatal error... Apache is exiting!For those of you that don't have the location of this log memorized (like me), it's /etc/var/log/httpd/error_log. So I went back and changed the .htpasswd file location back to what was suggested and used to suggested command and everything worked fine. So I'm wondering what the -m flag does and I'm wondering if it could be related to another problem I'm having with that other .htpasswd file I have. I'd put a .htaccess file in a directory I wanted to protect, indicating the appropriate file, but no authentication happens. Here's my access file: AuthType Basic AuthName "My Access" AuthUserFile ~rob/.htpasswd require valid-user order allow,deny allow from all deny from noneIf I simply use the -m flag, will it fix this access problem too? Rob |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|