summaryrefslogtreecommitdiffstats
path: root/docs/manual/misc/security_tips.html.en
diff options
context:
space:
mode:
authorDaniel Gruno <humbedooh@apache.org>2012-04-25 15:43:43 +0200
committerDaniel Gruno <humbedooh@apache.org>2012-04-25 15:43:43 +0200
commitbf7cc0553f96d0c54d20e28627704234eee925e3 (patch)
tree24fe9894efb799d6519133c0116c7ffc747dd0d4 /docs/manual/misc/security_tips.html.en
parentadd LastChangedRevision as svn properties as well (diff)
downloadapache2-bf7cc0553f96d0c54d20e28627704234eee925e3.tar.xz
apache2-bf7cc0553f96d0c54d20e28627704234eee925e3.zip
highlight config in misc/
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1330291 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/misc/security_tips.html.en')
-rw-r--r--docs/manual/misc/security_tips.html.en55
1 files changed, 29 insertions, 26 deletions
diff --git a/docs/manual/misc/security_tips.html.en b/docs/manual/misc/security_tips.html.en
index baf4b279e6..1a5ec0a057 100644
--- a/docs/manual/misc/security_tips.html.en
+++ b/docs/manual/misc/security_tips.html.en
@@ -334,11 +334,12 @@
<p>In the server configuration file, put</p>
- <div class="example"><p><code>
- &lt;Directory /&gt; <br />
- AllowOverride None <br />
+ <pre class="prettyprint lang-config">
+ &lt;Directory /&gt;
+ AllowOverride None
&lt;/Directory&gt;
- </code></p></div>
+ </pre>
+
<p>This prevents the use of <code>.htaccess</code> files in all
directories apart from those specifically enabled.</p>
@@ -365,27 +366,29 @@
work around this, add the following block to your server's
configuration:</p>
- <div class="example"><p><code>
- &lt;Directory /&gt; <br />
- Order Deny,Allow <br />
- Deny from all <br />
+ <pre class="prettyprint lang-config">
+ &lt;Directory /&gt;
+ Order Deny,Allow
+ Deny from all
&lt;/Directory&gt;
- </code></p></div>
+ </pre>
+
<p>This will forbid default access to filesystem locations. Add
appropriate <code class="directive"><a href="../mod/core.html#directory">Directory</a></code> blocks to
allow access only in those areas you wish. For example,</p>
- <div class="example"><p><code>
- &lt;Directory /usr/users/*/public_html&gt; <br />
- Order Deny,Allow <br />
- Allow from all <br />
- &lt;/Directory&gt; <br />
- &lt;Directory /usr/local/httpd&gt; <br />
- Order Deny,Allow <br />
- Allow from all <br />
+ <pre class="prettyprint lang-config">
+ &lt;Directory /usr/users/*/public_html&gt;
+ Order Deny,Allow
+ Allow from all
&lt;/Directory&gt;
- </code></p></div>
+ &lt;Directory /usr/local/httpd&gt;
+ Order Deny,Allow
+ Allow from all
+ &lt;/Directory&gt;
+ </pre>
+
<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
if <code>&lt;Directory /&gt;</code> denies access, a <code>
@@ -397,9 +400,8 @@
recommend that you include the following line in your server
configuration files:</p>
- <div class="example"><p><code>
- UserDir disabled root
- </code></p></div>
+ <pre class="prettyprint lang-config">UserDir disabled root</pre>
+
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
@@ -442,12 +444,13 @@
you probably commented out the following in your server configuration
file:</p>
- <div class="example"><p><code>
- &lt;Files ".ht*"&gt; <br />
- Order allow,deny <br />
- Deny from all <br />
+ <pre class="prettyprint lang-config">
+ &lt;Files ".ht*"&gt;
+ Order allow,deny
+ Deny from all
&lt;/Files&gt;
- </code></p></div>
+ </pre>
+
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">