Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Apache and <Files> Container

Posted on 2004-10-31
Medium Priority
Last Modified: 2010-03-04
In my httpd.conf I have the following for example

ScriptAlias /perlstuff/ "/home/meme/apache/perlstuff"

<Files /home/meme/apache/perlstuff/perl1.pl >
AuthUserFile /home/meme/apache/conf/.pwdfile
AuthName "Protected File"
AuthType Basic
Require valid-user

Whenever I go to for example


I can still access it, it doesn't prompt me.  I have the .pwdfile created and correctly in the conf directory so I'm not exactly sure where I'm going wrong.  I can do directories and wildcards but can't seem to do single files properly.

Question by:kevin_ma
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
LVL 38

Accepted Solution

yuzh earned 2000 total points
ID: 12460840
You can't control acess to a single file, you can only control access to dir level.

You can use .htaccess files or a single access.conf (you can use a different file name
as long as you defined it in your httpd.conf file) to control the dir access.

Fot  authentication using .htaccess, have a look at the following Tutorial:


Apache FAQ:


Featured Post

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses
Course of the Month11 days, 17 hours left to enroll

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question