phocee Posted September 1, 2004 Posted September 1, 2004 Hi, I have searched the August forums about this and found some similar topics but no exact response : I would like to protect a URL, NOT a directory; Because I am using a CMS, the URL does not automatically map to a directory. For instance I want to protect any URL that starts with http://mydomain/perso/ Normally this can be done with .htaccess and .htpasswd files. Is it the case at tch ? Is there any online support to build these .htpasswd files or do I have to create them myself (normally a UNIX thing) Thanks very much for your support, Regards Nicolas. Quote
phocee Posted September 1, 2004 Author Posted September 1, 2004 Normally this can be done with .htaccess and .htpasswd files. Actually, I am not sure about this. If I remember my technical years and if I read for instance "http://www.cgiextremes.com/extras/Tips_Tutorials/htaccess.html", I can NOT do what I want from htaccess files. It is rather an Apache configuration file (httpd.conf) property. And I guess I can not ask for this can I ? Any suggestion welcome, Thanks again, Nicolas. Quote
phocee Posted September 1, 2004 Author Posted September 1, 2004 Topic closed positively: it works FINE with htaccess !! --------------------------------------------------------- AuthUserFile <full_path_to_the_htpasswd_file> AuthGroupFile /dev/null AuthName "Restricted Stuff" AuthType "Basic" <Files perso> require valid-user </Files> --------------------------------------------------------- And goodie : an htpasswd file generator : http://www.poplarware.com/cgi-bin/htpasswd.cgi Sorry for the bother. Nicolas. Quote
TCH-Rob Posted September 1, 2004 Posted September 1, 2004 Nicolas, No bother at all. I enjoyed watching you respond to yourself. Glad I am not the only one. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.