Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In DNS setteing
- IP address (IN A / AAAA) 46.192.22.01
- IP address (IN A / AAAA) 46.192.22.02
- IP address (IN A / AAAA) 46.192.22.03
- ServerName www.example.com:80
- <VirtualHost *:80>
- ServerName www.example.com
- ServerAlias www.example.com
- DocumentRoot /var/www/html
- <directory "/var/www/html">
- Options Indexes FollowSymLinks
- AllowOverride all
- Order Deny,Allow
- Deny from all
- Allow from all
- </directory>
- <Proxy *>
- Order deny,allow
- Allow from all
- </Proxy>
- ProxyRequests Off
- ProxyPass /article http://46.192.22.02/article
- ProxyPassReverse /article http://46.192.22.02/article
- ProxyPass /photo http://46.192.22.02/photo
- ProxyPassReverse /photo http://46.192.22.02/photo
- ProxyPass /products http://46.192.22.03/products
- ProxyPassReverse /products http://46.192.22.03/products
- ProxyPass /showroom http://46.192.22.03/showroom
- ProxyPassReverse /showroom http://46.192.22.03/showroom
- </VirtualHost>
- ServerName www.example.com:80
- <VirtualHost *:80>
- ServerName www.example.com
- ServerAlias www.example.com
- DocumentRoot /var/www/html
- <directory "/var/www/html">
- Options Indexes FollowSymLinks
- AllowOverride all
- Order Deny,Allow
- Deny from all
- Allow from all
- </directory>
- <Proxy *>
- Order deny,allow
- Allow from all
- </Proxy>
- ProxyRequests Off
- ProxyPass /music http://46.192.22.01/music
- ProxyPassReverse /music http://46.192.22.01/music
- ProxyPass /video http://46.192.22.01/video
- ProxyPassReverse /video http://46.192.22.01/video
- ProxyPass /products http://46.192.22.03/products
- ProxyPassReverse /products http://46.192.22.03/products
- ProxyPass /showroom http://46.192.22.03/showroom
- ProxyPassReverse /showroom http://46.192.22.03/showroom
- </VirtualHost>
- ServerName www.example.com:80
- <VirtualHost *:80>
- ServerName www.example.com
- ServerAlias www.example.com
- DocumentRoot /var/www/html
- <directory "/var/www/html">
- Options Indexes FollowSymLinks
- AllowOverride all
- Order Deny,Allow
- Deny from all
- Allow from all
- </directory>
- <Proxy *>
- Order deny,allow
- Allow from all
- </Proxy>
- ProxyRequests Off
- ProxyPass /music http://46.192.22.01/music
- ProxyPassReverse /music http://46.192.22.01/music
- ProxyPass /video http://46.192.22.01/video
- ProxyPassReverse /video http://46.192.22.01/video
- ProxyPass /products http://46.192.22.03/products
- ProxyPassReverse /products http://46.192.22.03/products
- ProxyPass /showroom http://46.192.22.03/showroom
- ProxyPassReverse /showroom http://46.192.22.03/showroom
- </VirtualHost>
- 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
- ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
- # BEGIN WordPress
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteBase /
- RewriteRule ^music/track/(d+)?$ music/track.php?number=$1
- RewriteRule ^video/introduce/(d+)?$ video/introduce.php?number=$1
- RewriteCond %{HTTP_HOST} ^example.com$ [NC]
- RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule . /index.php [L]
- </IfModule>
- # BEGIN WordPress
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteBase /
- RewriteRule ^article/introduce/(d+)?$ article/introduce.php?number=$1
- RewriteRule ^photo/products/(d+)?$ photo/products.php?number=$1
- RewriteCond %{HTTP_HOST} ^example.com$ [NC]
- RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule . /index.php [L]
- </IfModule>
- # BEGIN WordPress
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteBase /
- RewriteRule ^products/smartphone/(d+)?$ products/smartphone.php?number=$1
- RewriteRule ^showroom/smartphone/(d+)?$ showroom/smartphone.php?number=$1
- RewriteCond %{HTTP_HOST} ^example.com$ [NC]
- RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule . /index.php [L]
- </IfModule>
- Nov 18 11:46:20 dhclient[857]: DHCPACK from 46.192.22.01 (xid=0x6caa5cd9)
- Nov 18 11:46:21 dhclient[857]: bound to 46.192.22.02 -- renewal in 1481 seconds.
- #dig example.com
- ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6 <<>> example.com
- ;; global options: +cmd
- ;; Got answer:
- ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63728
- ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
- ;; QUESTION SECTION:
- ;example.com. IN A
- ;; ANSWER SECTION:
- example.com. 7199 IN A 46.192.22.01
- example.com. 7199 IN A 46.192.22.02
- example.com. 7199 IN A 46.192.22.03
- ;; Query time: 121 msec
- ;; SERVER: 46.61.167.22#53(46.61.167.22)
- ;; WHEN: Sun Nov 23 20:51:03 2014
- ;; MSG SIZE rcvd: 81
- ProxyPass /products http://46.192.22.03/products flushpackets=On keepalive=On
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement