Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Sep 9th, 2010 | Syntax: None | Size: 3.17 KB | Hits: 20 | Expires: Never
Copy text to clipboard
  1.  vhost
  2. <VirtualHost 210.56.94.4:80>
  3.         ServerAdmin webmaster@vantagefx.com
  4.         ServerName vantagefx.com
  5.         ServerAlias www.vantagefx.com
  6.  
  7.  
  8.         DocumentRoot /var/www/html
  9.         <Directory /var/www/html>
  10.  
  11.                 Options Indexes FollowSymLinks
  12.                 AllowOverride All
  13.  
  14.  
  15.                 Order allow,deny
  16.                 Allow from all
  17.  
  18.         </Directory>
  19.         Redirect permanent /fundprocess.html https://vantagefx.com/fundprocess.html
  20.         Redirect permanent /vantage_fund_process.php https://vantagefx.com/vantage_fund_process.php
  21.  
  22.         ErrorLog logs/vantagefx.com-error_logs
  23.         TransferLog logs/vantagefx.com-access_logs
  24.         LogLevel warn
  25.  
  26.         RewriteLog logs/vantagefx.com-rewrite_logs
  27.         RewriteLogLevel 9
  28.  
  29.  
  30.  
  31. </VirtualHost>
  32.  
  33. <VirtualHost 210.56.94.4:443>
  34.         ServerAdmin webmaster@vantagefx.com
  35.         ServerName vantagefx.com
  36.  
  37.  
  38.         DocumentRoot /var/www/html
  39.          <Directory /var/www/html>
  40.  
  41.                 Options Indexes FollowSymLinks
  42.                 AllowOverride All
  43.  
  44.  
  45.                 Order allow,deny
  46.                 Allow from all
  47.  
  48.         </Directory>
  49.        
  50.  
  51.         ErrorLog logs/vantagefx.com-ssl-error_logs
  52.         TransferLog logs/vantagefx.com-ssl-access_logs
  53.         LogLevel warn
  54.  
  55.  
  56.         SSLEngine On
  57.         SSLCertificateFile /etc/certs/server-vantagefx-com-thawte.crt
  58.         SSLCertificateKeyFile /etc/certs/server-vantagefx-com.key
  59.         SSLCACertificateFile /etc/certs/intermediate.crt
  60.  
  61.  
  62.         SetEnvIf User-Agent ".*MSIE.*" \
  63.                  nokeepalive ssl-unclean-shutdown \
  64.                  downgrade-1.0 force-response-1.0
  65.  
  66. </VirtualHost>                                  
  67.  
  68.  
  69.  
  70. <VirtualHost 210.56.94.3:443>
  71.         ServerAdmin webmaster@vantagefx.com
  72.         ServerName www.vantagefx.com
  73.  
  74.  
  75.  
  76.         Redirect permanent / https://vantagefx.com
  77.  
  78.  
  79.  
  80.         ErrorLog logs/vantagefx.com-ssl-error_logs
  81.         TransferLog logs/vantagefx.com-ssl-access_logs
  82.         LogLevel warn
  83.  
  84. </VirtualHost>
  85.  
  86.  
  87.  cat /etc/httpd/conf.d/name-virtual-host.conf
  88. NameVirtualHost 210.56.94.4:80
  89. NameVirtualHost 210.56.94.4:443
  90. NameVirtualHost 210.56.94.3:80
  91. NameVirtualHost 210.56.94.3:443
  92.  
  93.  
  94.  ifconfig
  95. eth0      Link encap:Ethernet  HWaddr 00:0C:29:3F:06:17  
  96.           inet addr:210.56.94.4  Bcast:210.56.94.7  Mask:255.255.255.248
  97.           inet6 addr: fe80::20c:29ff:fe3f:617/64 Scope:Link
  98.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  99.           RX packets:7104818 errors:0 dropped:0 overruns:0 frame:0
  100.           TX packets:9502522 errors:0 dropped:0 overruns:0 carrier:0
  101.           collisions:0 txqueuelen:1000
  102.           RX bytes:988869476 (943.0 MiB)  TX bytes:9278879092 (8.6 GiB)
  103.  
  104. eth0:0    Link encap:Ethernet  HWaddr 00:0C:29:3F:06:17  
  105.           inet addr:210.56.94.3  Bcast:210.56.94.7  Mask:255.255.255.248
  106.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  107.  
  108. lo        Link encap:Local Loopback  
  109.           inet addr:127.0.0.1  Mask:255.0.0.0
  110.           inet6 addr: ::1/128 Scope:Host
  111.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  112.           RX packets:43532 errors:0 dropped:0 overruns:0 frame:0
  113.           TX packets:43532 errors:0 dropped:0 overruns:0 carrier:0
  114.           collisions:0 txqueuelen:0
  115.           RX bytes:8854075 (8.4 MiB)  TX bytes:8854075 (8.4 MiB)