~ubuntu-branches/ubuntu/hardy/apache2/hardy-proposed

« back to all changes in this revision

Viewing changes to docs/manual/misc/security_tips.html.en

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Fritsch
  • Date: 2008-01-17 20:27:56 UTC
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20080117202756-hv38rjknhwa2ilwi
Tags: upstream-2.2.8
ImportĀ upstreamĀ versionĀ 2.2.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
    
132
132
    <p>To isolate the damage a wayward SSI file can cause, a server 
133
133
    administrator can enable <a href="../suexec.html">suexec</a> as 
134
 
    described in the <a href="#cgi">CGI in General</a> section</p>
 
134
    described in the <a href="#cgi">CGI in General</a> section.</p>
135
135
    
136
136
    <p>Enabling SSI for files with .html or .htm extensions can be 
137
137
    dangerous. This is especially true in a shared, or high traffic, 
143
143
    programs from SSI pages. To do this replace <code>Includes</code>
144
144
    with <code>IncludesNOEXEC</code> in the <code class="directive"><a href="../mod/core.html#options">Options</a></code> directive.  Note that users may 
145
145
    still use &lt;--#include virtual="..." --&gt; to execute CGI scripts if 
146
 
    these scripts are in directories desginated by a <code class="directive"><a href="../mod/mod_alias.html#scriptalias">ScriptAlias</a></code> directive.</p>
 
146
    these scripts are in directories designated by a <code class="directive"><a href="../mod/mod_alias.html#scriptalias">ScriptAlias</a></code> directive.</p>
147
147
    
148
148
  </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
149
149
<div class="section">
280
280
    
281
281
    <p>Pay particular attention to the interactions of <code class="directive"><a href="../mod/core.html#location">Location</a></code> and <code class="directive"><a href="../mod/core.html#directory">Directory</a></code> directives; for instance, even 
282
282
    if <code>&lt;Directory /&gt;</code> denies access, a <code>
283
 
    &lt;Location /&gt;</code> directive might overturn it</p>
 
283
    &lt;Location /&gt;</code> directive might overturn it.</p>
284
284
    
285
285
    <p>Also be wary of playing games with the <code class="directive"><a href="../mod/mod_userdir.html#userdir">UserDir</a></code> directive; setting it to 
286
286
    something like "./" would have the same effect, for root, as the first 
302
302
    you have to check the <a href="../logs.html">Log Files</a>.  Even though 
303
303
    the log files only reports what has already happened, they will give you 
304
304
    some understanding of what attacks is thrown against the server and 
305
 
    allows you to check if the necessary level of security is present.</p>
 
305
    allow you to check if the necessary level of security is present.</p>
306
306
    
307
307
    <p>A couple of examples:</p>
308
308