Mercurial > hg > nginx-site
comparison xml/ja/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 | 9913f1d51c07 |
children |
comparison
equal
deleted
inserted
replaced
592:d40371689c1c | 593:130fad6dc1b4 |
---|---|
27 } | 27 } |
28 </programlisting> | 28 </programlisting> |
29 </para> | 29 </para> |
30 | 30 |
31 <para> | 31 <para> |
32 これは間違っていて面倒で非効率的な方法です。正しい方法は <url>example.org</url> 用に別のサーバを定義します: | 32 これは間違っていて面倒で非効率的な方法です。正しい方法は <literal>example.org</literal> 用に別のサーバを定義します: |
33 | 33 |
34 <programlisting> | 34 <programlisting> |
35 server { | 35 server { |
36 listen 80; | 36 listen 80; |
37 server_name example.org; | 37 server_name example.org; |
50 | 50 |
51 | 51 |
52 <section> | 52 <section> |
53 | 53 |
54 <para> | 54 <para> |
55 別の例として、<url>example.com</url> 以外と <url>www.example.com</url> 以外のすべて、という後方ロジックの代わりの例です: | 55 別の例として、<literal>example.com</literal> 以外と <literal>www.example.com</literal> 以外のすべて、という後方ロジックの代わりの例です: |
56 | 56 |
57 <programlisting> | 57 <programlisting> |
58 RewriteCond %{HTTP_HOST} !example.com | 58 RewriteCond %{HTTP_HOST} !example.com |
59 RewriteCond %{HTTP_HOST} !www.example.com | 59 RewriteCond %{HTTP_HOST} !www.example.com |
60 RewriteRule (.*) http://www.example.com$1 | 60 RewriteRule (.*) http://www.example.com$1 |
61 </programlisting> | 61 </programlisting> |
62 | 62 |
63 この場合、単に <url>example.com</url>、<url>www.example.com</url>、そしてそれ以外を定義します: | 63 この場合、単に <literal>example.com</literal>、<literal>www.example.com</literal>、そしてそれ以外を定義します: |
64 | 64 |
65 | 65 |
66 <programlisting> | 66 <programlisting> |
67 server { | 67 server { |
68 listen 80; | 68 listen 80; |