|
|
Easier, and more secure!
Nice idea, but I have to disagree with the means.
Instead of messing with mod_rewrite (which is a fine tool, don't get me wrong), just use: This takes care that all files will be displayed as source, be they shtml, php, perl, whathaveyou. Also, to get rid off the unencrypted authentification, get mod_auth_digest, which is accepted by both the Finder and iCal (to publish you calendars).See also: Getting to the source with WebDAV The mod_auth_digest moduleI have a nicely working setup running on Linux/Debian, and am happy to answer any other questions. Alex
Easier, and more secure!
Code snippet should have been:
<Directory /Library/WebServer/Documents>
Permissions?
Can you tell me how you have permissions set up for this?
Permissions?
I can't speak for others, but I use mod_auth_apple for authentication. The source is available from Apple here: http://www.opensource.apple.com/projects/darwin/darwinserver/source/apsl/mod_auth_apple-XS-10.1.tgz Compile it up, install it, then add the following lines to your httpd.conf. First, in the LoadModule area, add this:
Next, in the AddModule area, add this line:
Be sure to put these lines in the same place in terms of load order! If you put the LoadModule statement last, then the AddModule needs to be last as well. Basically, that's it! The mod_apple_auth works just like the mod_auth that comes with Apache, but gets its authenication information from NetInfo. Therefore, within your or block, you'd have something like this:
There's no need for an AuthUserFile directive. AuthType Basic will now go looking in NetInfo. It will allow users that are members of the same group as is assigned to the server (by default, this is 'www' or 'nogroup') to log in. To be sure, look in your httpd.conf for this directive:
It should be uncommented. From here, I expand my permissions further through the use of the 'file-owner' and 'file-group' attributes of the Require statment. These two will look at the file and group privileges on the file/folder, and allow access that way. To sum up: valid-user lets them in (provided they're in 'www') Hope this helps! TTFN, James |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks 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.09 seconds |
|