comparison xml/he/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 ff357b676c2e
comparison
equal deleted inserted replaced
592:d40371689c1c 593:130fad6dc1b4
32 </programlisting> 32 </programlisting>
33 </para> 33 </para>
34 34
35 <para> 35 <para>
36 צורה זו היא שגוייה, מסובכת, ולא יעילה. 36 צורה זו היא שגוייה, מסובכת, ולא יעילה.
37 הדרך הנכונה היא להגדיר שרת נפרד עבור <url>example.org</url>: 37 הדרך הנכונה היא להגדיר שרת נפרד עבור <literal>example.org</literal>:
38 38
39 <programlisting> 39 <programlisting>
40 server { 40 server {
41 listen 80; 41 listen 80;
42 server_name example.org; 42 server_name example.org;
56 56
57 <section> 57 <section>
58 58
59 <para> 59 <para>
60 דוגמה נוספת, במקום הגיון הפוך: כל מה שהוא לא 60 דוגמה נוספת, במקום הגיון הפוך: כל מה שהוא לא
61 <url>example.com</url> וגם לא <url>www.example.com</url>: 61 <literal>example.com</literal> וגם לא <literal>www.example.com</literal>:
62 62
63 <programlisting> 63 <programlisting>
64 RewriteCond %{HTTP_HOST} !example.com 64 RewriteCond %{HTTP_HOST} !example.com
65 RewriteCond %{HTTP_HOST} !www.example.com 65 RewriteCond %{HTTP_HOST} !www.example.com
66 RewriteRule (.*) http://www.example.com$1 66 RewriteRule (.*) http://www.example.com$1
67 </programlisting> 67 </programlisting>
68 68
69 עלייך רק להגדיר את <url>example.com</url>, <url>www.example.com</url>, 69 עלייך רק להגדיר את <literal>example.com</literal>, <literal>www.example.com</literal>,
70 וכל דבר אחר: 70 וכל דבר אחר:
71 71
72 <programlisting> 72 <programlisting>
73 server { 73 server {
74 listen 80; 74 listen 80;