Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-27-2009, 05:33 PM   #1
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Rep: Reputation: 39
Trying to work with apache <Files> directives

Hi all,

I've got a htaccess file set-up within a web folder of the following:-

Order Allow,Deny
Deny from all
<Files ~ ".(css|jp?g|png|gif|js)$">
   Allow from all

<Files ~ ".(txt)$">
   Allow from
What i'm trying to do here is allow specific files (txt) as allowed to be severed only to people from the network, anything else shouldn't be able to see .txt files, however should be able to see the other files. Is this the correct way to go about something like this?

As its not working and people not within the network are still able to access the txt files...?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2 Global public_html directives 0.o Linux - Server 1 10-01-2008 11:18 AM
apache + mod_vhs [directives from database (mysql)?] nichu Linux - General 0 02-04-2008 04:43 AM
Apache ReWriteRule, ProxyPassReverse, and Allow From directives yakkerty Linux - Networking 3 06-24-2004 01:21 PM
Apache 1.3 configuration directives calissal Linux - Software 0 09-08-2003 01:47 PM
Apache 1.3 Configuration Directives Found calissal Linux - General 4 09-08-2003 08:47 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration