rendered paste body<VirtualHost 127.0.0.1:80>
# This one is used for handling LoadDirect cgi traffic
DocumentRoot "/var/www/tonservices.com_ssl/htdocs"
ServerName localhost
ScriptAlias /cgi-bin/ "/var/www/tonservices.com_ssl/cgi-bin/"
ScriptAlias /cgi-src/ "/var/www/tonservices.com_ssl/cgi-src/"
ErrorLog logs/localhost_error_log
CustomLog logs/localhost_access_log combined
</VirtualHost>
<VirtualHost 204.110.224.104:80>
ServerName www1.tonservices.com
DocumentRoot /var/www/tonservices.com/htdocs
ErrorLog logs/www1.error_log
CustomLog logs/www1.access_log combined
ErrorDocument 404 /miss404.html
ErrorDocument 500 /miss500.html
Options +Includes
RewriteEngine on
RewriteRule /(applogin\.asp.*) https://www.fjcomm.com/$1 [R,L]
RewriteRule ^/(CFIDE/administrator/.*)$ https://www1.tonservices.com/$1 [R,L]
Include conf/fjcommRewrite.conf
AddType text/html .htm
AddOutputFilter INCLUDES .htm
</VirtualHost><VirtualHost 204.110.224.104:443>
ServerName www1.tonservices.com
DocumentRoot /var/www/tonservices.com/htdocs
ErrorLog logs/www1.ssl_error_log
CustomLog logs/www1.ssl_access_log common
ErrorDocument 404 /miss404.html
ErrorDocument 500 /miss500.html
Options +Includes
SSLEngine on
SSLProxyEngine on
SSLCertificateFile /etc/httpd/conf/www.fjcomm.com.crt
SSLCertificateKeyFile /etc/httpd/conf/www.fjcomm.com.key
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:!LOW:!SSLv2:!EXP
RewriteEngine on
Include conf/fjcommRewrite.conf
AddType text/html .htm
AddOutputFilter INCLUDES .htm
</VirtualHost>
## tontelco.com and .net redirects to www2.tonservices.com/teleconferencing.htm
<VirtualHost 204.110.224.104:80>
ServerName www.tontelco.com
ServerAlias www.tontelco.com www.tontelco.net
DocumentRoot /var/www/telco_redir
ErrorLog logs/tontelco.com_error_log
CustomLog logs/tontelco.com_access_log combined
</VirtualHost>
<VirtualHost 204.110.224.35:80>
ServerName www.tonservices.com
ErrorLog logs/tonservices.com_error_log
CustomLog logs/tonservices.com_access_log combined
RewriteEngine on
RewriteRule ^/(CFIDE/administrator/.*)$ https://www.tonservices.com/$1 [R,L] RewriteRule ^/(.*):SSL$ https://%{SERVER_NAME}/$1 [R,L]
RewriteRule ^/(.*):NOSSL$ http://%{SERVER_NAME}/$1 [R,L]
DocumentRoot /var/www/tonservices.com/htdocs
<Directory "/var/www/tonservices.com/htdocs">
Options MultiViews -Indexes Includes FollowSymLinks
AllowOverride All
</Directory>
#redirect to fjcomm.com
#RewriteRule /(.*) http://www.fjcomm.com/$1 [R,L]
<Directory "/var/www/fjcomm.com/html">
Options MultiViews -Indexes Includes FollowSymLinks
AllowOverride All
</Directory>
Include conf/tonservicesRewrite.conf
</VirtualHost>
<VirtualHost 204.110.224.35:443>
ServerName www.tonservices.com
ErrorLog logs/tonservices.com_error_log
CustomLog logs/tonservices.com_access_log combined
SSLEngine on
SSLProxyEngine on
SSLCertificateFile /etc/httpd/conf/www.tonservices.com.crt
SSLCertificateKeyFile /etc/httpd/conf/www.tonservices.com.key
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:!LOW:!SSLv2:!EXP
RewriteEngine on
SSLProxyEngine on
RewriteRule ^/(.*):SSL$ https://%{SERVER_NAME}/$1 [R,L]
RewriteRule ^/(.*):NOSSL$ http://%{SERVER_NAME}/$1 [R,L]
DocumentRoot /var/www/tonservices.com_ssl/htdocs
<Directory "/var/www/tonservices.com_ssl/htdocs">
Options MultiViews -Indexes Includes FollowSymLinks
AllowOverride All
</Directory>
#redirect to fjcomm.com
# RewriteRule /(.*) https://www.fjcomm.com/$1 [R,L]
Include conf/tonservicesRewrite.conf
</VirtualHost>
<VirtualHost 204.110.224.147:80>
ServerName www.mygosmart.com
ServerAlias mygosmart.com
ErrorLog logs/mygosmart.com_error_log
CustomLog logs/mygosmart.com_access_log combined
RewriteEngine on
SSLProxyEngine on
RewriteRule ^/(.*):SSL$ https://%{SERVER_NAME}/$1 [R,L]
RewriteRule ^/(.*):NOSSL$ http://%{SERVER_NAME}/$1 [R,L]
DocumentRoot /var/www/fjcomm.com/html
<Directory "/var/www/fjcomm.com/html">
Options MultiViews -Indexes Includes FollowSymLinks
AllowOverride All
</Directory>
#neptune 10.1.24.211 204.110.224.165
#saturn 10.1.24.209 204.110.224.161
#Allow static content to saturn
ReWriteRule ^/gosmart/static/(.*)$ http://204.110.224.161/gosmart/static/$1 [P,L]
Include conf/fjcommRewrite.conf
ReWriteRule ^(.*)$ http://204.110.224.167/$1 [P]
ProxyTimeout 900
</VirtualHost>
<VirtualHost 204.110.224.147:443>
ServerName www.mygosmart.com
ServerAlias mygosmart.com
ErrorLog logs/mygosmart.com_error_log
CustomLog logs/mygosmart.com_access_log combined
SSLEngine on
SSLProxyEngine on
SSLCertificateFile /etc/httpd/conf/www.mygosmart.com.crt
SSLCertificateKeyFile /etc/httpd/conf/www.mygosmart.com.key
# SSLCertificateFile /etc/httpd/conf/www.fjcomm.com.crt
# SSLCertificateKeyFile /etc/httpd/conf/www.fjcomm.com.key
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:!LOW:!SSLv2:!EXP
RewriteEngine on
RewriteRule ^/(.*):SSL$ https://%{SERVER_NAME}/$1 [R,L]
RewriteRule ^/(.*):NOSSL$ http://%{SERVER_NAME}/$1 [R,L]
#neptune 10.1.24.211 204.110.224.165
#saturn 10.1.24.209 204.110.224.161
# Route traffic to saturn/neptune for cellular web pages
ReWriteRule ^/gosmart/(.*)$ http://204.110.224.161/gosmart/$1 [P,L]
ReWriteRule ^/i/(.*)$ http://204.110.224.161/i/$1 [P,L]
ReWriteRule ^/pls/(.*)$ http://204.110.224.161/pls/$1 [P,L]
ReWriteRule ^/flyingj/(.*)$ http://204.110.224.161/flyingj/$1 [P,L]
DocumentRoot /var/www/fjcomm.com/html
<Directory "/var/www/fjcomm.com/html">
Options MultiViews -Indexes Includes FollowSymLinks
AllowOverride All
</Directory>
Include conf/fjcommRewrite.conf
ReWriteRule ^(.*)$ http://204.110.224.167/$1 [P]
ProxyTimeout 900
</VirtualHost>
<VirtualHost 204.110.224.104:80>
ServerName www.mygosmart.com
ServerAlias mygosmart.com
ErrorLog logs/mygosmart.com_error_log
CustomLog logs/mygosmart.com_access_log combined
RewriteEngine on
SSLProxyEngine on
RewriteRule ^/(.*):SSL$ https://%{SERVER_NAME}/$1 [R,L]
RewriteRule ^/(.*):NOSSL$ http://%{SERVER_NAME}/$1 [R,L]
DocumentRoot /var/www/fjcomm.com/html
<Directory "/var/www/fjcomm.com/html">
Options MultiViews -Indexes Includes FollowSymLinks
AllowOverride All
</Directory>
#neptune 10.1.24.211 204.110.224.165
#saturn 10.1.24.209 204.110.224.161
#Allow static content to saturn
ReWriteRule ^/gosmart/static/(.*)$ http://204.110.224.161/gosmart/static/$1 [P,L]
Include conf/fjcommRewrite.conf
ReWriteRule ^(.*)$ http://204.110.224.167/$1 [P]
ProxyTimeout 900
</VirtualHost>
######################Below here can all be removed after ns1.tonservices.com updates for the mygosmart domain.
<VirtualHost 204.110.224.104:443>
ServerName www.mygosmart.com
ServerAlias mygosmart.com
ErrorLog logs/mygosmart.com_error_log
CustomLog logs/mygosmart.com_access_log combined
SSLEngine on
SSLProxyEngine on
SSLCertificateFile /etc/httpd/conf/www.mygosmart.com.crt
SSLCertificateKeyFile /etc/httpd/conf/www.mygosmart.com.key
# SSLCertificateFile /etc/httpd/conf/www.fjcomm.com.crt
# SSLCertificateKeyFile /etc/httpd/conf/www.fjcomm.com.key
RewriteEngine on
RewriteRule ^/(.*):SSL$ https://%{SERVER_NAME}/$1 [R,L]
RewriteRule ^/(.*):NOSSL$ http://%{SERVER_NAME}/$1 [R,L]
#neptune 10.1.24.211 204.110.224.165
#saturn 10.1.24.209 204.110.224.161
# Route traffic to saturn/neptune for cellular web pages
ReWriteRule ^/gosmart/(.*)$ http://204.110.224.161/gosmart/$1 [P,L]
ReWriteRule ^/i/(.*)$ http://204.110.224.161/i/$1 [P,L]
ReWriteRule ^/pls/(.*)$ http://204.110.224.161/pls/$1 [P,L]
ReWriteRule ^/flyingj/(.*)$ http://204.110.224.161/flyingj/$1 [P,L]
DocumentRoot /var/www/fjcomm.com/html
<Directory "/var/www/fjcomm.com/html">
Options MultiViews -Indexes Includes FollowSymLinks
AllowOverride All
</Directory>
Include conf/fjcommRewrite.conf
ReWriteRule ^(.*)$ http://204.110.224.167/$1 [P]
ProxyTimeout 900
</VirtualHost>
<VirtualHost 204.110.224.104:80>
ServerName www.fjesolutions.com
ServerAlias fjesolutions.com
ErrorLog logs/fjesolutions.com_error_log
CustomLog logs/fjesolutions.com_access_log combined
RewriteEngine on
DocumentRoot /var/www/fjesolutions.com/html
<Directory "/var/www/fjesolutions.com/html">
Options MultiViews -Indexes Includes FollowSymLinks
AllowOverride All
</Directory>
# Served by vanillacoke:8081
ReWriteRule ^(.*)$ http://204.110.224.167:8081/$1 [P]
ProxyTimeout 900
</VirtualHost>
<VirtualHost 204.110.224.104:80>
ServerName www.fjcomm.com
ServerAlias www.flyingjcomm.com fjcomm.com
ErrorLog logs/fjcomm.com_error_log
CustomLog logs/fjcomm.com_access_log combined
RewriteEngine on
SSLProxyEngine on
RewriteRule ^/(.*):SSL$ https://%{SERVER_NAME}/$1 [R,L]
RewriteRule ^/(.*):NOSSL$ http://%{SERVER_NAME}/$1 [R,L]
DocumentRoot /var/www/fjcomm.com/html
<Directory "/var/www/fjcomm.com/html">
Options MultiViews -Indexes Includes FollowSymLinks
AllowOverride All
</Directory>
#redirect NonSSL login pages to SSL ones.
RewriteRule /(applogin\.asp.*) https://www.fjcomm.com/$1 [R,L]
RewriteRule ^/(CFIDE/administrator/.*)$ https://www.fjcomm.com/$1 [R,L]
Include conf/fjcommRewrite.conf
</VirtualHost>
<VirtualHost 204.110.224.104:443>
ServerName www.fjcomm.com
ServerAlias www.flyingjcomm.com fjcomm.com
ErrorLog logs/fjcomm.com_error_log
CustomLog logs/fjcomm.com_access_log combined
SSLEngine on
SSLProxyEngine on
SSLCertificateFile /etc/httpd/conf/www.fjcomm.com.crt
SSLCertificateKeyFile /etc/httpd/conf/www.fjcomm.com.key
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:!LOW:!SSLv2:!EXP
RewriteEngine on
RewriteRule ^/(.*):SSL$ https://%{SERVER_NAME}/$1 [R,L]
RewriteRule ^/(.*):NOSSL$ http://%{SERVER_NAME}/$1 [R,L]
#neptune 10.1.24.211 204.110.224.165
#saturn 10.1.24.209 204.110.224.161
# Route traffic to saturn/neptune for cellular web pages
ReWriteRule ^/gosmart/(.*)$ http://204.110.224.161/gosmart/$1 [P,L]
ReWriteRule ^/imaging/(.*)$ http://204.110.224.161/imgserv.asp [P,L]
ReWriteRule ^/i/(.*)$ http://204.110.224.161/i/$1 [P,L]
ReWriteRule ^/pls/(.*)$ http://204.110.224.161/pls/$1 [P,L]
ReWriteRule ^/flyingj/(.*)$ http://204.110.224.161/flyingj/$1 [P,L]
DocumentRoot /var/www/fjcomm.com/html
<Directory "/var/www/fjcomm.com/html">
Options MultiViews -Indexes Includes FollowSymLinks
AllowOverride All
</Directory>
Include conf/fjcommRewrite.conf
</VirtualHost>
<VirtualHost *:80>
ServerName ldtest.tonservices.com
ServerAlias ldtest
ScriptAlias /cgi-bin/ "/var/www/loaddirect_test/cgi-bin/"
ScriptAlias /cgi-src/ "/var/www/loaddirect_test/cgi-src/"
ErrorLog logs/ld_test.tonservices.com_error_log
CustomLog logs/ld_test.tonservices.com_access_log combined
DocumentRoot /var/www/loaddirect_test/htdocs
</VirtualHost>
==tonservicesRewrite.conf==# Disable TRACE method for security reasons
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
# All JSPs and servlets are handled by DMS on aspapp2
ReWriteRule ^/(.*)\.jsp(.*)$ http://aspapp2:5284/$1.jsp$2 [P,L]
ReWriteRule ^/(.*)/doclink/servlet/(.*)$ http://aspapp2:5284/$1/doclink/servlet/$2 [P,L]
ReWriteRule ^/(.*)\.do(.*)$ http://aspapp2:5284/$1.do$2 [P,L]
# cgi traffic is handled by tonservices.com
#RewriteRule ^/cgi-bin/(.*)$ https://www.tonservices.com/cgi-bin/$1 [P,L]
#RewriteRule ^/cgi-src/(.*)$ https://www.tonservice.com/cgi-src/$1 [P,L]RewriteRule ^/cgi-bin/(.*)$ http://localhost/cgi-bin/$1 [P,L]
RewriteRule ^/cgi-src/(.*)$ http://localhost/cgi-src/$1 [P,L]
# LoadDirect images
#RewriteRule ^/images/datalink/(.*)$ http://localhost/images/datalink/$1 [P,L]
#RewriteRule ^/images/kardlink/(.*)$ http://localhost/images/kardlink/$1 [P,L]
# ColdFusion to cf2
RewriteRule ^/tons/(.*)$ http://204.110.224.85/tons/$1 [P,L]
RewriteRule ^/driver_docs/(.*)$ http://204.110.224.85/driver_docs/$1 [P,L]
RewriteRule ^/map/(.*)$ http://204.110.224.85/wisp/map/$1 [P,L]
RewriteRule ^/apps/(.*)$ http://204.110.224.85/apps/$1 [P,L]
RewriteRule ^/CFIDE/(.*)$ http://204.110.224.85/CFIDE/$1 [P,L]
#Redirect for dvir/sergey's app. running on 10.1.24.52:80 aka 204.110.224.7:80
RewriteRule ^/dvir/(.*)$ http://204.110.224.7/$1 [P,L]
#Redirect all traffic to vanillacoke. Can't do that on tonservices.com because of calling cards!!!!!
#ReWriteRule ^(.*)$ http://204.110.224.167/$1 [P]
ProxyTimeout 900