Re: Deny access to all but 2 paths

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Mon, Feb 27, 2012 at 10:21 AM, Grant <emailgrant@xxxxxxxxx> wrote:
Can anyone tell me how to deny access to all paths/files/locations
within a VirtualHost except for these:

/folder/file.html
/folder/file.txt

- Grant

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


Maybe something like this?

<Directory /folder">
     Order deny,allow
     Deny from all
     <FilesMatch "file\.(txt|html)$">
          Allow from all
     </FileMatch>
</Directory>


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux