diff options
Diffstat (limited to 'docs/manual/howto/htaccess.html.en')
-rw-r--r-- | docs/manual/howto/htaccess.html.en | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/docs/manual/howto/htaccess.html.en b/docs/manual/howto/htaccess.html.en index e1c08d51fc..a82943880e 100644 --- a/docs/manual/howto/htaccess.html.en +++ b/docs/manual/howto/htaccess.html.en @@ -197,11 +197,9 @@ changes on a per-directory basis.</p> </div> <div class="example"><h3>Section from your <code>httpd.conf</code> - file</h3><pre class="prettyprint lang-config"> -<Directory /www/htdocs/example> + file</h3><pre class="prettyprint lang-config"><Directory /www/htdocs/example> AddType text/example .exm -</Directory> - </pre> +</Directory></pre> </div> <p>However, putting this configuration in your server configuration @@ -266,15 +264,13 @@ changes on a per-directory basis.</p> prevent script execution while allowing anything else to be set in <code>.htaccess</code> you can use:</p> - <pre class="prettyprint lang-config"> -<Directory /www/htdocs> + <pre class="prettyprint lang-config"><Directory /www/htdocs> AllowOverride All </Directory> <Location /> Options +IncludesNoExec -ExecCGI<br /> -</Location> - </pre> +</Location></pre> <div class="note">This example assumes that your <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> is <code>/www/htdocs</code>.</div> @@ -301,13 +297,11 @@ changes on a per-directory basis.</p> <p><code>.htaccess</code> file contents:</p> - <pre class="prettyprint lang-config"> -AuthType Basic + <pre class="prettyprint lang-config">AuthType Basic AuthName "Password Required" AuthUserFile /www/passwords/password.file AuthGroupFile /www/passwords/group.file -Require Group admins - </pre> +Require Group admins</pre> <p>Note that <code>AllowOverride AuthConfig</code> must be in effect @@ -324,11 +318,9 @@ Require Group admins the following configuration directives, placed in a <code>.htaccess</code> file in the desired directory:</p> - <pre class="prettyprint lang-config"> -Options +Includes + <pre class="prettyprint lang-config">Options +Includes AddType text/html shtml -AddHandler server-parsed shtml - </pre> +AddHandler server-parsed shtml</pre> <p>Note that <code>AllowOverride Options</code> and <code>AllowOverride @@ -345,20 +337,16 @@ AddHandler server-parsed shtml the execution of CGI programs in a particular directory. This may be implemented with the following configuration:</p> - <pre class="prettyprint lang-config"> -Options +ExecCGI -AddHandler cgi-script cgi pl - </pre> + <pre class="prettyprint lang-config">Options +ExecCGI +AddHandler cgi-script cgi pl</pre> <p>Alternately, if you wish to have all files in the given directory be considered to be CGI programs, this may be done with the following configuration:</p> - <pre class="prettyprint lang-config"> -Options +ExecCGI -SetHandler cgi-script - </pre> + <pre class="prettyprint lang-config">Options +ExecCGI +SetHandler cgi-script</pre> <p>Note that <code>AllowOverride Options</code> and <code>AllowOverride |