Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.95 KB | None | 0 0
  1. In DNS setteing
  2. IP address (IN A / AAAA) 46.192.22.01
  3. IP address (IN A / AAAA) 46.192.22.02
  4. IP address (IN A / AAAA) 46.192.22.03
  5.  
  6. ServerName www.example.com:80
  7. <VirtualHost *:80>
  8. ServerName www.example.com
  9. ServerAlias www.example.com
  10. DocumentRoot /var/www/html
  11. <directory "/var/www/html">
  12. Options Indexes FollowSymLinks
  13. AllowOverride all
  14. Order Deny,Allow
  15. Deny from all
  16. Allow from all
  17. </directory>
  18. <Proxy *>
  19. Order deny,allow
  20. Allow from all
  21. </Proxy>
  22. ProxyRequests Off
  23. ProxyPass /article http://46.192.22.02/article
  24. ProxyPassReverse /article http://46.192.22.02/article
  25. ProxyPass /photo http://46.192.22.02/photo
  26. ProxyPassReverse /photo http://46.192.22.02/photo
  27. ProxyPass /products http://46.192.22.03/products
  28. ProxyPassReverse /products http://46.192.22.03/products
  29. ProxyPass /showroom http://46.192.22.03/showroom
  30. ProxyPassReverse /showroom http://46.192.22.03/showroom
  31. </VirtualHost>
  32.  
  33. ServerName www.example.com:80
  34. <VirtualHost *:80>
  35. ServerName www.example.com
  36. ServerAlias www.example.com
  37. DocumentRoot /var/www/html
  38. <directory "/var/www/html">
  39. Options Indexes FollowSymLinks
  40. AllowOverride all
  41. Order Deny,Allow
  42. Deny from all
  43. Allow from all
  44. </directory>
  45. <Proxy *>
  46. Order deny,allow
  47. Allow from all
  48. </Proxy>
  49. ProxyRequests Off
  50. ProxyPass /music http://46.192.22.01/music
  51. ProxyPassReverse /music http://46.192.22.01/music
  52. ProxyPass /video http://46.192.22.01/video
  53. ProxyPassReverse /video http://46.192.22.01/video
  54. ProxyPass /products http://46.192.22.03/products
  55. ProxyPassReverse /products http://46.192.22.03/products
  56. ProxyPass /showroom http://46.192.22.03/showroom
  57. ProxyPassReverse /showroom http://46.192.22.03/showroom
  58. </VirtualHost>
  59.  
  60. ServerName www.example.com:80
  61. <VirtualHost *:80>
  62. ServerName www.example.com
  63. ServerAlias www.example.com
  64. DocumentRoot /var/www/html
  65. <directory "/var/www/html">
  66. Options Indexes FollowSymLinks
  67. AllowOverride all
  68. Order Deny,Allow
  69. Deny from all
  70. Allow from all
  71. </directory>
  72. <Proxy *>
  73. Order deny,allow
  74. Allow from all
  75. </Proxy>
  76. ProxyRequests Off
  77. ProxyPass /music http://46.192.22.01/music
  78. ProxyPassReverse /music http://46.192.22.01/music
  79. ProxyPass /video http://46.192.22.01/video
  80. ProxyPassReverse /video http://46.192.22.01/video
  81. ProxyPass /products http://46.192.22.03/products
  82. ProxyPassReverse /products http://46.192.22.03/products
  83. ProxyPass /showroom http://46.192.22.03/showroom
  84. ProxyPassReverse /showroom http://46.192.22.03/showroom
  85. </VirtualHost>
  86.  
  87. 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
  88. ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
  89.  
  90. # BEGIN WordPress
  91. <IfModule mod_rewrite.c>
  92. RewriteEngine On
  93. RewriteBase /
  94.  
  95. RewriteRule ^music/track/(d+)?$ music/track.php?number=$1
  96. RewriteRule ^video/introduce/(d+)?$ video/introduce.php?number=$1
  97.  
  98. RewriteCond %{HTTP_HOST} ^example.com$ [NC]
  99. RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
  100. RewriteCond %{REQUEST_FILENAME} !-f
  101. RewriteCond %{REQUEST_FILENAME} !-d
  102. RewriteRule . /index.php [L]
  103. </IfModule>
  104.  
  105. # BEGIN WordPress
  106. <IfModule mod_rewrite.c>
  107. RewriteEngine On
  108. RewriteBase /
  109.  
  110. RewriteRule ^article/introduce/(d+)?$ article/introduce.php?number=$1
  111. RewriteRule ^photo/products/(d+)?$ photo/products.php?number=$1
  112.  
  113. RewriteCond %{HTTP_HOST} ^example.com$ [NC]
  114. RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
  115. RewriteCond %{REQUEST_FILENAME} !-f
  116. RewriteCond %{REQUEST_FILENAME} !-d
  117. RewriteRule . /index.php [L]
  118. </IfModule>
  119.  
  120. # BEGIN WordPress
  121. <IfModule mod_rewrite.c>
  122. RewriteEngine On
  123. RewriteBase /
  124.  
  125. RewriteRule ^products/smartphone/(d+)?$ products/smartphone.php?number=$1
  126. RewriteRule ^showroom/smartphone/(d+)?$ showroom/smartphone.php?number=$1
  127.  
  128. RewriteCond %{HTTP_HOST} ^example.com$ [NC]
  129. RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
  130. RewriteCond %{REQUEST_FILENAME} !-f
  131. RewriteCond %{REQUEST_FILENAME} !-d
  132. RewriteRule . /index.php [L]
  133. </IfModule>
  134.  
  135. Nov 18 11:46:20 dhclient[857]: DHCPACK from 46.192.22.01 (xid=0x6caa5cd9)
  136. Nov 18 11:46:21 dhclient[857]: bound to 46.192.22.02 -- renewal in 1481 seconds.
  137.  
  138. #dig example.com
  139.  
  140. ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6 <<>> example.com
  141. ;; global options: +cmd
  142. ;; Got answer:
  143. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63728
  144. ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
  145.  
  146. ;; QUESTION SECTION:
  147. ;example.com. IN A
  148.  
  149. ;; ANSWER SECTION:
  150. example.com. 7199 IN A 46.192.22.01
  151. example.com. 7199 IN A 46.192.22.02
  152. example.com. 7199 IN A 46.192.22.03
  153.  
  154. ;; Query time: 121 msec
  155. ;; SERVER: 46.61.167.22#53(46.61.167.22)
  156. ;; WHEN: Sun Nov 23 20:51:03 2014
  157. ;; MSG SIZE rcvd: 81
  158.  
  159. ProxyPass /products http://46.192.22.03/products flushpackets=On keepalive=On
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement