Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 21st, 2001, 04:40 AM
jamesf4218 jamesf4218 is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2001
Location: England
Posts: 673 jamesf4218 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 27 m
Reputation Power: 8
.htaccess not working

Hello,

I have my .htaccess file in a directory but when I go to the directory it just lets me get in anyway - the .htaccess file is not working.

The code in it is:

AuthUserFile /usr/lib/apache/.htpasswd
AuthGroupFile /dev/null
AuthName extranet
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>

I am running Apache on Linux.

Also, I can browse directories if I don't put in a filename. How do I switch this off please?

Cheers

James

Reply With Quote
  #2  
Old November 21st, 2001, 05:23 AM
bumperbox bumperbox is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Tauranga, NZ
Posts: 349 bumperbox User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
do this to hide directory indexes
Options -Indexes

as for your basic auth, it looks ok, maybe .htacces has been turned off on your server

Reply With Quote
  #3  
Old November 21st, 2001, 06:21 AM
jamesf4218 jamesf4218 is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2001
Location: England
Posts: 673 jamesf4218 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 27 m
Reputation Power: 8
How do you turn it back on again?

Reply With Quote
  #4  
Old November 21st, 2001, 08:54 AM
pippo's Avatar
pippo pippo is offline
A PAtCHy sErver
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Italy
Posts: 410 pippo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
>>How do you turn it back on again?
Check AllowOverride @ http://httpd.apache.org/docs/mod/co...l#allowoverride
__________________
My article: mod_rewrite: No More Endless Loops!

Reply With Quote
  #5  
Old November 21st, 2001, 11:35 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You need to tell Apache to give override permission to the directory where your .htaccess resides.

<Directory "/path/to/docroot/private">
Options -Indexes
AllowOverride AuthConfig
</Directory>

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > .htaccess not working


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT