Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

htaccess

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Installing 5.1 (XP) problems  
Author Message
Oliver Wittkopf

External


Since: Jun 30, 2005
Posts: 5



(Msg. 1) Posted: Wed Jun 29, 2005 9:55 pm
Post subject: htaccess
Archived from groups: alt>apache>configuration (more info?)

Hi,

How is it possible to request a password for directory listing but allow
direct acces to files? My htaccess file asks for a password on accessing
every file.

www.q1lan.com --> should ask for password and show directory listing
www.q1lan.com/info.html --> should not ask for password and display the file

n8, o.w.

------------------------------------------------
AuthType Basic
AuthName "Locked"
AuthUserFile /www//q1lan.com/www/.htusers
AuthGroupFile /www//q1lan.com/www/.htgroups
require group admin
Options +Indexes
<Files *.*>
</Files>

 >> Stay informed about: htaccess 
Back to top
Login to vote
Tim

External


Since: Feb 09, 2005
Posts: 67



(Msg. 2) Posted: Thu Jun 30, 2005 12:55 am
Post subject: Re: htaccess [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 30 Jun 2005 02:37:16 +0200, Oliver Wittkopf wrote:

> How is it possible to request a password for directory listing but allow
> direct acces to files? My htaccess file asks for a password on accessing
> every file.

That would be normal. However, once the credentials have been entered,
the browser should carry on using the same ones for subsequent queries.

> www.q1lan.com --> should ask for password and show directory listing
> www.q1lan.com/info.html --> should not ask for password and display the
> file
> ------------------------------------------------
> AuthType Basic
> AuthName "Locked"
> AuthUserFile /www//q1lan.com/www/.htusers
> AuthGroupFile /www//q1lan.com/www/.htgroups
> require group admin
> Options +Indexes
> <Files *.*>
> </Files>

I don't see what the files bit is in there for, it's not doing anything.
I don't know why you've got double slashes after www, either.

I'm not sure if it's possible to do what you're asking, but perhaps
putting an "allow from any" directive into the files section might
override the need for any credentials to access the contents.

But is that what you really want? Do you really want unfettered access to
the files, or are you just trying to avoid being continually asked to
provide credentials. If it's the latter, it's a problem with your browser.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.

 >> Stay informed about: htaccess 
Back to top
Login to vote
David Cary Hart

External


Since: Jun 27, 2005
Posts: 4



(Msg. 3) Posted: Thu Jun 30, 2005 11:55 am
Post subject: Re: htaccess [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 2005-06-30 at 12:50 +0900, Tim wrote:
> On Thu, 30 Jun 2005 02:37:16 +0200, Oliver Wittkopf wrote:
>
> > How is it possible to request a password for directory listing but allow
> > direct acces to files? My htaccess file asks for a password on accessing
> > every file.
>
> That would be normal. However, once the credentials have been entered,
> the browser should carry on using the same ones for subsequent queries.
>

> I'm not sure if it's possible to do what you're asking, but perhaps
> putting an "allow from any" directive into the files section might
> override the need for any credentials to access the contents.
>

For that matter, it seems that .htaccess is becoming deprecated. Why not
put the access scheme in httpd.conf?

--
Displayed Email Address is a SPAM TRAP
Eliminate Spam: http://www.TQMcube.com/spam_trap.htm
RBLDNSD HowTo: http://www.TQMcube.com/rbldnsd.htm
Multi-RBL Check: http://www.TQMcube.com/rblcheck.htm
 >> Stay informed about: htaccess 
Back to top
Login to vote
Oliver Wittkopf

External


Since: Jun 30, 2005
Posts: 5



(Msg. 4) Posted: Thu Jun 30, 2005 9:55 pm
Post subject: Re: htaccess [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"David Cary Hart" <MaiPhenLai DeleteThis @TQMcube.com> schrieb im Newsbeitrag
news:1120144496.2170.42.camel@dch.TQMcube.com...
> On Thu, 2005-06-30 at 12:50 +0900, Tim wrote:
>> On Thu, 30 Jun 2005 02:37:16 +0200, Oliver Wittkopf wrote:
>>
>> > How is it possible to request a password for directory listing but
>> > allow
>> > direct acces to files? My htaccess file asks for a password on
>> > accessing
>> > every file.
>>
>> That would be normal. However, once the credentials have been entered,
>> the browser should carry on using the same ones for subsequent queries.


but how can i avoid to be asked for a password while accessing a file, but
to protect file listings with a password?


>>
>
>> I'm not sure if it's possible to do what you're asking, but perhaps
>> putting an "allow from any" directive into the files section might
>> override the need for any credentials to access the contents.
>>


this ends up with server error.


>
> For that matter, it seems that .htaccess is becoming deprecated. Why not
> put the access scheme in httpd.conf?
>

i dont have access to the httpd.conf, therefore i have to solve it via
htaccess

> --
> Displayed Email Address is a SPAM TRAP
> Eliminate Spam: http://www.TQMcube.com/spam_trap.htm
> RBLDNSD HowTo: http://www.TQMcube.com/rbldnsd.htm
> Multi-RBL Check: http://www.TQMcube.com/rblcheck.htm
>
>
 >> Stay informed about: htaccess 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Can I use .htaccess in cgi-bin? - I'm trying to install the YaBB bulletin board. As part of the install process, I'm told to set up some .htaccess files in cgi-bin. However, apache seems to be ignoring these files. My .htaccess file contains the following: AuthUserFile /dev/null..

htaccess - Hi Im trying to block certain isp's in an htaccess file but one of them is my isp and dont want to block me. I have a static ip address, what is the format for this in the htaccess file Thanks Willie

.htaccess: why??? - Hi. Sorry for my english, but I don't know it very well. I have a problem with .htaccess. My file .htaccess is this: ====BEGIN======== AddType text/plain .log =====END========= I made it because my apache web server (provider aruba) associate to .log....

htaccess & SSL - I would like to control with htaccess the acces for one directory of my site. But I don't know how to configure my htaccess to limit the access from "https://". Thank's Edz ...

htaccess with SQL - Hi, I have a problem (well more than one), I want to use htaccess to allow users in an MySQL database to gain access to the specified directory only when there authorization in the database is good. e.g. person1 when with authorization level 1 gains no..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]