Jump to content

Recommended Posts

Posted

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.

Posted
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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...