Mercurial > hg > nginx-site
changeset 51:d1e8781b9c5f
Fixing the wording.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 03 Oct 2011 10:59:42 +0000 |
parents | 9d544687d02c |
children | 666e85596e3c |
files | xml/en/docs/http/converting_rewrite_rules.xml |
diffstat | 1 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/converting_rewrite_rules.xml +++ b/xml/en/docs/http/converting_rewrite_rules.xml @@ -10,14 +10,14 @@ <para> People who during their shared hosting life used to configure <i>everything</i> using <i>only</i> Apache’s .htaccess files, -translate usually the following rules: +usually translate the following rules: <programlisting> RewriteCond %{HTTP_HOST} nginx.org RewriteRule (.*) http://www.nginx.org$1 </programlisting> -in something like this: +to something like this: <programlisting> server { @@ -56,8 +56,9 @@ server { <section> <para> -Another example, instead of backward logic: all that is not -<url>nginx.com</url> and is not <url>www.nginx.com</url>: +Another example. +Instead of the “upside-down” logic “all that is not +<url>nginx.com</url> and is not <url>www.nginx.com</url>”: <programlisting> RewriteCond %{HTTP_HOST} !nginx.com @@ -65,8 +66,8 @@ RewriteCond %{HTTP_HOST} !www.nginx.co RewriteRule (.*) http://www.nginx.com$1 </programlisting> -you should define just <url>nginx.com</url>, <url>www.nginx.com</url>, -and anything else: +one should simply define <url>nginx.com</url>, <url>www.nginx.com</url>, +and “everything else”: <programlisting> server {