LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-11-2009, 03:03 AM   #1
tikit
Member
 
Registered: Feb 2008
Posts: 85

Rep: Reputation: 16
Apache - how to deny access to a file


Hi,

I am trying to deny access through web browser to a file "denied_file" in /var/www/appl directory. I have this in my Apache configuration, but it is still accessible. When typing http://myserver/appl/denied_file I can see the content of the file.

Code:
        <Directory /var/www/appl>
                Options FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        <Files "denied_file">
        Order deny,allow
        Deny from all
        </Files>
What am I doing wrong?

Thanks for your help.
 
Old 11-11-2009, 03:26 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
I guess you've restarted apache, in which case you should try after clearing your browser's cache

Regards
 
Old 11-11-2009, 03:53 AM   #3
tikit
Member
 
Registered: Feb 2008
Posts: 85

Original Poster
Rep: Reputation: 16
thanks bathory. It was the browser`s cache problem.

Regards tikit
 
  


Reply



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
deny access to youtube.com 7mza Linux - Networking 3 01-20-2009 04:48 AM
Access allow and deny to APACHE & SSH longnam Solaris / OpenSolaris 5 03-02-2007 07:59 AM
deny access to certian file type redhatattack Linux - Newbie 4 09-03-2006 09:02 PM
access and deny mchitrakar Linux - Security 8 04-24-2004 03:53 AM
Deny access by IP address plisken Linux - Security 1 12-29-2001 10:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

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