Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 06:49 PM
4MLA1FN
Guest
 
Posts: n/a
Default using basic authtype hides directory??

i have a catch-all directory that i want my users to be able to
access. (the stuff changes frequently enough that i don't want to
spend time maintaining an index.html.) i have the indexes option
enabled in the server. this all works fine: e.g.
http://www.4mla1fn.com

now, i have one directory in that list that i want to protect with
authtype basic. however when i do this, the directory name vanishs
from the directory listing. e.g. if i create a directory called
"restricted" and setup authtype (via .htaccess and .htpasswd) for that
directory, then "restricted " will not appear in the directory
listing.

is there a way around this?? thanks alot.
  #2  
Old July 20th, 2005, 06:49 PM
Andrew Thompson
Guest
 
Posts: n/a
Default Re: using basic authtype hides directory??

"4MLA1FN" ...[color=blue]
> i have a catch-all directory that i want my users to be able to
> access. (the stuff changes frequently enough that i don't want to
> spend time maintaining an index.html.) i have the indexes option
> enabled in the server. this all works fine: e.g.
> http://www.4mla1fn.com
>
> now, i have one directory in that list that i want to protect with
> authtype basic. however when i do this, the directory name vanishs
> from the directory listing. e.g. if i create a directory called
> "restricted" and setup authtype (via .htaccess and .htpasswd) for that
> directory, then "restricted " will not appear in the directory
> listing.[/color]

I assume you have removed the restrictions
on 'restricted' 'coz I can see it from here..

One thought, you put an authtype on it,
it disappears. What happens if you browse
to the directory then add 'restricted/ to the
address in the menu bar and press 'enter'..

It should take you to the directory, even
if only to present the log-in, no?

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology


  #3  
Old July 20th, 2005, 06:50 PM
4MLA1FN
Guest
 
Posts: n/a
Default Re: using basic authtype hides directory??

On Wed, 25 Feb 2004 21:12:09 GMT, "Andrew Thompson"
<SeeMySites@www.invalid> wrote:
[color=blue]
>I assume you have removed the restrictions
>on 'restricted' 'coz I can see it from here..[/color]

yep.
[color=blue]
>What happens if you browse
>to the directory then add 'restricted/ to the
>address in the menu bar and press 'enter'..[/color]

the authentication dialog appear. (this is equivalent to clicking a
link to the files in the directory; problem is i'd rather not make a
webpage for directory.)


  #4  
Old July 20th, 2005, 06:50 PM
Sherm Pendley
Guest
 
Posts: n/a
Default Re: using basic authtype hides directory??

4MLA1FN wrote:
[color=blue]
> now, i have one directory in that list that i want to protect with
> authtype basic. however when i do this, the directory name vanishs
> from the directory listing. e.g. if i create a directory called
> "restricted" and setup authtype (via .htaccess and .htpasswd) for that
> directory, then "restricted " will not appear in the directory
> listing.
>
> is there a way around this?? thanks alot.[/color]

You could use Apache's HeaderName or ReadmeName directives to provide a
custom header or footer for the index, and put a link to the protected
directory in that.

sherm--
  #5  
Old July 20th, 2005, 06:50 PM
4MLA1FN
Guest
 
Posts: n/a
Default Re: using basic authtype hides directory??

On Wed, 25 Feb 2004 14:51:56 -0500, 4MLA1FN
<rchong@-----speakeasy.net> wrote:
[color=blue]
>however when i do this, the directory name vanishes...[/color]

interesting. i just changed webservers (from 2.0.40 to 1.3.29) and now
it works. now, the index shows the protected directory. when
clicked, i authenticate, then get to see the contents. very cool.
e.g.:

go to http://www.4mla1fn.com/sti/ and click on "sti-manual".


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles