Mercurial > hg > nginx-site
diff xml/en/docs/http/converting_rewrite_rules.xml @ 593:130fad6dc1b4
Replaced the uses of "url" element with "literal".
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 19 Jul 2012 05:17:45 +0000 |
parents | 764fbac1b8b4 |
children | cb7fbecee8e6 |
line wrap: on
line diff
--- a/xml/en/docs/http/converting_rewrite_rules.xml Thu Jul 19 04:57:51 2012 +0000 +++ b/xml/en/docs/http/converting_rewrite_rules.xml Thu Jul 19 05:17:45 2012 +0000 @@ -39,7 +39,7 @@ <para> This is a wrong, cumbersome, and ineffective way. -The right way is to define a separate server for <url>example.org</url>: +The right way is to define a separate server for <literal>example.org</literal>: <programlisting> server { @@ -72,7 +72,7 @@ <para> Another example. Instead of the “upside-down” logic “all that is not -<url>example.com</url> and is not <url>www.example.com</url>”: +<literal>example.com</literal> and is not <literal>www.example.com</literal>”: <programlisting> RewriteCond %{HTTP_HOST} !example.com @@ -80,7 +80,7 @@ RewriteRule (.*) http://www.example.com$1 </programlisting> -one should simply define <url>example.com</url>, <url>www.example.com</url>, +one should simply define <literal>example.com</literal>, <literal>www.example.com</literal>, and “everything else”: <programlisting>