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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 17th, 2001, 07:37 AM
alfred alfred is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 3 alfred User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to alfred
Angry

Respected Sirs,
Iam a newbie in using apache.Iam using apache on WinNt
for web hosting.Now I want to perform access control to
certain directories by means of .htaccess files.

My problem is the webserver does not even read the .htaccess file which i have placed in the directory which i want to protect.I have given Allowoverride AuthConfig in my httpd.conf file. I've also created my password file using htpasswd utility .
I read it somewhere that in WinNT the .htaccess file
should not be named as .htaccess and should be just
htaccess.I tried even that and also changed "AccessFileName" to htaccess in the httpd.conf but still no result.

The interesting point is if i give the following code in my httpd.conf file

<Directory "c:\training">
AuthType Basic
AuthName "Restricted Directory"
AuthUserFile "D:\9ias\Apache\Apache\bin\mypasswd"
require user alfred
</Directory>

my access control works perfectly fine.

So what is the solution??.how to use it with .htaccess???

Also after the user is authenticated for a particular directory i want him to be again authenticated when he tries to access a particular file present inside that directory.I've tried using <Files>,<FilesMatch>,<LocationMatch> in httpd.conf but no use.

Maybe iam doing things in the wrong way due to my inexperience with apache.

So pls help and sorry for any disturbance caused.

Thanx,
Alfred

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Help needed with .htaccess files


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 6 hosted by Hostway