summaryrefslogtreecommitdiff
path: root/docs/manual/misc/security_tips.html.en
diff options
context:
space:
mode:
Diffstat (limited to 'docs/manual/misc/security_tips.html.en')
-rw-r--r--docs/manual/misc/security_tips.html.en28
1 files changed, 10 insertions, 18 deletions
diff --git a/docs/manual/misc/security_tips.html.en b/docs/manual/misc/security_tips.html.en
index 647e5647..192d7bc1 100644
--- a/docs/manual/misc/security_tips.html.en
+++ b/docs/manual/misc/security_tips.html.en
@@ -9,7 +9,7 @@
<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
-<script src="../style/scripts/prettify.js" type="text/javascript">
+<script src="../style/scripts/prettify.min.js" type="text/javascript">
</script>
<link href="../images/favicon.ico" rel="shortcut icon" /></head>
@@ -334,11 +334,9 @@
<p>In the server configuration file, put</p>
- <pre class="prettyprint lang-config">
-&lt;Directory /&gt;
+ <pre class="prettyprint lang-config">&lt;Directory /&gt;
AllowOverride None
-&lt;/Directory&gt;
- </pre>
+&lt;/Directory&gt;</pre>
<p>This prevents the use of <code>.htaccess</code> files in all
@@ -366,25 +364,21 @@
work around this, add the following block to your server's
configuration:</p>
- <pre class="prettyprint lang-config">
-&lt;Directory /&gt;
+ <pre class="prettyprint lang-config">&lt;Directory /&gt;
Require all denied
-&lt;/Directory&gt;
- </pre>
+&lt;/Directory&gt;</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>
- <pre class="prettyprint lang-config">
-&lt;Directory /usr/users/*/public_html&gt;
+ <pre class="prettyprint lang-config">&lt;Directory /usr/users/*/public_html&gt;
Require all granted
&lt;/Directory&gt;
&lt;Directory /usr/local/httpd&gt;
Require all granted
-&lt;/Directory&gt;
- </pre>
+&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
@@ -441,11 +435,9 @@
you probably commented out the following in your server configuration
file:</p>
- <pre class="prettyprint lang-config">
-&lt;Files ".ht*"&gt;
+ <pre class="prettyprint lang-config">&lt;Files ".ht*"&gt;
Require all denied
-&lt;/Files&gt;
- </pre>
+&lt;/Files&gt;</pre>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
@@ -487,7 +479,7 @@ var comments_identifier = 'http://httpd.apache.org/docs/2.4/misc/security_tips.h
}
})(window, document);
//--><!]]></script></div><div id="footer">
-<p class="apache">Copyright 2013 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
+<p class="apache">Copyright 2014 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
if (typeof(prettyPrint) !== 'undefined') {
prettyPrint();