Bugzilla – Attachment 17166 Details for
Bug 9812
Several files shouldn't be exposed or browseable through a URL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9812 - Forbid access to several files through the browser
Bug-9812---Forbid-access-to-several-files-through-.patch (text/plain), 1.74 KB, created by
Jonathan Druart
on 2013-04-03 13:12:45 UTC
(
hide
)
Description:
Bug 9812 - Forbid access to several files through the browser
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-04-03 13:12:45 UTC
Size:
1.74 KB
patch
obsolete
>From 79b623e0dd68bc07c2bcf20f14b0141b33d81ace Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Wed, 13 Mar 2013 14:24:20 -0300 >Subject: [PATCH] Bug 9812 - Forbid access to several files through the > browser > >This patch hides (-Indexes) and forbids (Deny from all) access to some stuff through a browser. >Specifically "xlst", "modules" and "includes" dirs and its contents. > >This is just a quick fix we talked about at IRC. The proper solution would be to remove this from htdocs which will still be needed. > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > etc/koha-httpd.conf | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > >diff --git a/etc/koha-httpd.conf b/etc/koha-httpd.conf >index 0e7af51..bba91ca 100644 >--- a/etc/koha-httpd.conf >+++ b/etc/koha-httpd.conf >@@ -20,6 +20,16 @@ > SetEnv MEMCACHED_SERVERS "__MEMCACHED_SERVERS__" > SetEnv MEMCACHED_NAMESPACE "__MEMCACHED_NAMESPACE__" > >+ <Directory "__OPAC_WWW_DIR__"> >+ Options -Indexes >+ </Directory> >+ >+ # Secure internal stuff >+ <DirectoryMatch "__OPAC_WWW_DIR__/.*/(modules|xslt|includes)"> >+ Order deny,allow >+ Deny from all >+ </DirectoryMatch> >+ > <IfModule mod_gzip.c> > mod_gzip_on yes > mod_gzip_dechunk yes >@@ -120,6 +130,16 @@ > ErrorDocument 404 /cgi-bin/koha/errors/404.pl > ErrorDocument 500 /cgi-bin/koha/errors/500.pl > >+ <Directory "__INTRANET_WWW_DIR__"> >+ Options -Indexes >+ </Directory> >+ >+ # Secure internal stuff >+ <DirectoryMatch "__INTRANET_WWW_DIR__/.*/(modules|xslt|includes)"> >+ Order deny,allow >+ Deny from all >+ </DirectoryMatch> >+ > <IfModule mod_gzip.c> > mod_gzip_on yes > mod_gzip_dechunk yes >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9812
:
16098
|
17090
| 17166