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


Click here to return to the 'A workaround solution for WebDAV with XP users' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A workaround solution for WebDAV with XP users
Authored by: aixccapt99 on Jun 10, '04 12:12:13PM

Two notes about .htpasswd files:

1) You have to use the -c option ("create") to the htpasswd command the first time you add passwords to a particular file. Don't use it after the first time; it will wipe out the file and overwrite it.

2) The best location for your .htpasswd files is OUTSIDE the web-accessible area, for security reasons. Apache does have a pre-configured filter that should block access (only if you name them .htpasswd), but why not be extra-safe? Create the directory /Library/WebServer/htpasswords/ (which is not web-accessible by default) and create as many files you want in there. You could have different files for different sections of your site -- they don't have to be named .htaccess. Just specify the file you want to use when you set up the AuthFile directive.



[ Reply to This | # ]