Commit 913f68b9 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 785511: Prevent directory browsing, especially in docs/ and extensions/

r=dkl a=LpSolit
parent a3b0a94e
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
<FilesMatch ^(.*\.pm|.*\.pl|.*localconfig.*)$> <FilesMatch ^(.*\.pm|.*\.pl|.*localconfig.*)$>
deny from all deny from all
</FilesMatch> </FilesMatch>
Options -Indexes
<IfModule mod_expires.c> <IfModule mod_expires.c>
<IfModule mod_headers.c> <IfModule mod_headers.c>
<IfModule mod_env.c> <IfModule mod_env.c>
......
...@@ -1056,19 +1056,20 @@ SetEnv LD_LIBRARY_PATH /u01/app/oracle/product/10.2.0/lib/ ...@@ -1056,19 +1056,20 @@ SetEnv LD_LIBRARY_PATH /u01/app/oracle/product/10.2.0/lib/
<programlisting> <programlisting>
&lt;Directory /var/www/html/bugzilla&gt; &lt;Directory /var/www/html/bugzilla&gt;
AddHandler cgi-script .cgi AddHandler cgi-script .cgi
Options +Indexes +ExecCGI Options +ExecCGI
DirectoryIndex index.cgi DirectoryIndex index.cgi index.html
AllowOverride Limit FileInfo Indexes AllowOverride Limit FileInfo Indexes Options
&lt;/Directory&gt; &lt;/Directory&gt;
</programlisting> </programlisting>
<para> <para>
These instructions: allow apache to run .cgi files found These instructions: allow apache to run .cgi files found
within the bugzilla directory; instructs the server to look 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 only types the directory name into the browser; and allows
Bugzilla's <filename>.htaccess</filename> files to override Bugzilla's <filename>.htaccess</filename> files to override
global permissions. some global permissions.
</para> </para>
<note> <note>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment