Bug 785511: Prevent directory browsing, especially in docs/ and extensions/
r=dkl a=LpSolit git-svn-id: svn://10.0.0.236/trunk@264164 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1 +1 @@
|
||||
8359
|
||||
8360
|
||||
@@ -2,6 +2,9 @@
|
||||
<FilesMatch ^(.*\.pm|.*\.pl|.*localconfig.*)$>
|
||||
deny from all
|
||||
</FilesMatch>
|
||||
|
||||
Options -Indexes
|
||||
|
||||
<IfModule mod_expires.c>
|
||||
<IfModule mod_headers.c>
|
||||
<IfModule mod_env.c>
|
||||
|
||||
@@ -1056,19 +1056,20 @@ SetEnv LD_LIBRARY_PATH /u01/app/oracle/product/10.2.0/lib/
|
||||
<programlisting>
|
||||
<Directory /var/www/html/bugzilla>
|
||||
AddHandler cgi-script .cgi
|
||||
Options +Indexes +ExecCGI
|
||||
DirectoryIndex index.cgi
|
||||
AllowOverride Limit FileInfo Indexes
|
||||
Options +ExecCGI
|
||||
DirectoryIndex index.cgi index.html
|
||||
AllowOverride Limit FileInfo Indexes Options
|
||||
</Directory>
|
||||
</programlisting>
|
||||
|
||||
<para>
|
||||
These instructions: allow apache to run .cgi files found
|
||||
within the bugzilla directory; instructs the server to look
|
||||
for a file called <filename>index.cgi</filename> if someone
|
||||
for a file called <filename>index.cgi</filename> or, if not
|
||||
found, <filename>index.html</filename> if someone
|
||||
only types the directory name into the browser; and allows
|
||||
Bugzilla's <filename>.htaccess</filename> files to override
|
||||
global permissions.
|
||||
some global permissions.
|
||||
</para>
|
||||
|
||||
<note>
|
||||
|
||||
Reference in New Issue
Block a user