# As much as possible we add our site specific stuff here.
# This is the real document root.
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
# Custom timeouts. These appear to be ignored by a lot of browsers.
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType text/css A43200
ExpiresDefault "now plus 12 months"
ExpiresDefault "now"
# Hide git directories.
# https://serverfault.com/a/527911
RedirectMatch 404 /\.git
AddHandler application/x-httpd-php .html
AddHandler application/x-httpd-php .html
AddHandler application/x-httpd-php .html
AddHandler application/x-httpd-php .html
AddHandler application/x-httpd-php .html
AddHandler application/x-httpd-php .html
AddHandler application/x-httpd-php .html
AuthType Basic
AuthName "Stats"
AuthUserFile /var/www/passwords/secure
AuthGroupFile /var/www/passwords/groups
Require group employees
AddHandler application/x-httpd-php .html
AliasMatch ^/GifCharts(/.*)?$ /var/www/alldocs/main/empty_file
#Alias /stats /var/www/alldocs/stats
#
# AuthType Basic
# AuthName "Stats"
# AuthUserFile /var/www/passwords/stats
# Require user Shari
# AddType text/html .html .html.gz
#
Alias /home /var/www/alldocs/home
Options -Indexes
Options Indexes FollowSymLinks
AllowOverride None
AuthType Basic
AuthName "Stats"
AuthUserFile /var/www/passwords/secure
AuthGroupFile /var/www/passwords/groups
Require group preview
Options Indexes FollowSymLinks
AllowOverride None
AuthType Basic
AuthName "Stats"
AuthUserFile /var/www/passwords/secure
AuthGroupFile /var/www/passwords/groups
Require group employees
Require user Kathleen
Require user Mike
Options Indexes FollowSymLinks
AllowOverride None
AuthType Basic
AuthName "Pristine Back Office"
AuthUserFile /var/www/passwords/secure
AuthGroupFile /var/www/passwords/groups
Require group employees
Require group pristine
Options Indexes FollowSymLinks
AllowOverride None
AuthType Basic
AuthName "Third Party Billing"
AuthUserFile /var/www/passwords/secure
AuthGroupFile /var/www/passwords/groups
Require group employees
Require group generic_third_party
AddHandler application/x-httpd-php .html
AddHandler application/x-httpd-php .html
Order allow,deny
Deny from all
Satisfy All
Order allow,deny
Deny from all
Satisfy All
Order allow,deny
Deny from all
Satisfy All
AuthType Basic
AuthName "Stats"
AuthUserFile /var/www/passwords/secure
AuthGroupFile /var/www/passwords/groups
Require group employees
Header set "Cache-Control" "no-cache, no-store"
Header set "Cache-Control" "no-cache, no-store"
Header set "Cache-Control" "no-cache, no-store"
AuthType Basic
AuthName "Stats"
AuthUserFile /var/www/passwords/secure
AuthGroupFile /var/www/passwords/groups
# Require group employees
# This doesn't work well. It stops people from just typing Samples. But if
# they end the url with a / then they see everything without a password.
Require group employees
AddType text/html .html
# Unknown virtual host. Usually trade-ideas.com. This is bad for cookies! Redirect somewhere better.
DocumentRoot /var/www/alldocs/main
ServerName trade-ideas.com
AliasMatch ^/ /var/www/alldocs/main/RealAddress.html
DocumentRoot /var/www/alldocs/69.43.145.244
ServerName 69.43.145.244
DocumentRoot /var/www/alldocs/etrade
ServerName etrade.trade-ideas.com
DocumentRoot /var/www/alldocs/mobile
ServerName mobile.trade-ideas.com
AddHandler application/x-httpd-php .html
DocumentRoot /var/www/alldocs/main
ServerName www.trade-ideas.com
AliasMatch ^/Glossary/.*\.gif$ /var/www/alldocs/main$0
AliasMatch ^/Glossary(/.*)? /var/www/alldocs/main/Glossary.html
AliasMatch ^/SingleAlertType(/.*)?$ /var/www/alldocs/main/SingleAlertType.html
AliasMatch ^(/StockInfo/_[^/]*)$ /var/www/alldocs/main$1
AliasMatch ^/StockInfo/[^/]*$ /var/www/alldocs/main/StockInfo/Index.html
AliasMatch ^/StockInfo/.*/ /var/www/alldocs/main/StockInfo/StockInfo.html
RedirectMatch permanent ^/Source/([^/]*)/?(.*) http://www.trade-ideas.com/$2
DocumentRoot /var/www/alldocs/LSE
ServerName lse.trade-ideas.com
AliasMatch ^/Glossary/.*\.gif$ /var/www/alldocs/lse$0
AliasMatch ^/Glossary(/.*)? /var/www/alldocs/lse/Glossary.html
AliasMatch ^/SingleAlertType(/.*)?$ /var/www/alldocs/lse/SingleAlertType.html
AliasMatch ^(/StockInfo/_[^/]*)$ /var/www/alldocs/lse$1
AliasMatch ^/StockInfo/[^/]*$ /var/www/alldocs/lse/StockInfo/Index.html
AliasMatch ^/StockInfo/.*/ /var/www/alldocs/lse/StockInfo/StockInfo.html
RedirectMatch permanent ^/Source/([^/]*)/?(.*) http://lse.trade-ideas.com/$2
DocumentRoot /var/www/alldocs/pristine
ServerName pristine.trade-ideas.com
RedirectMatch permanent ^/Source/([^/]*)/?(.*) http://pristine.trade-ideas.com/$2
DocumentRoot /var/www/alldocs/pristine
ServerName esp1.pristine.com
RedirectMatch permanent ^/Source/([^/]*)/?(.*) http://esp1.pristine.com/$2
DocumentRoot /var/www/alldocs/pristine-test
ServerName test-pristine.trade-ideas.com
RedirectMatch permanent ^/Source/([^/]*)/?(.*) http://test-pristine.trade-ideas.com/$2
DocumentRoot /var/www/alldocs/teamtrading
ServerName teamtrading.trade-ideas.com
RedirectMatch permanent ^/Source/([^/]*)/?(.*) http://teamtrading.trade-ideas.com/$2
DocumentRoot /var/www/alldocs/vcm
ServerName scanner.vcmtrading.com
RedirectMatch permanent ^/Source/([^/]*)/?(.*) http://scanner.vcmtrading.com/$2
DocumentRoot /var/www/alldocs/vcm
ServerName www.vcmscannerpro.com
RedirectMatch permanent ^/Source/([^/]*)/?(.*) http://www.vcmscannerpro.com/$2
# We should never get here. The lighttpd proxy is handling
# static.trade-ideas.com itself.
DocumentRoot /var/www/alldocs/static
ServerName static.trade-ideas.com
DocumentRoot /var/www/alldocs/proxy
ServerName proxy.trade-ideas.com
DocumentRoot /var/www/alldocs/test
ServerName test-www.trade-ideas.com
SetEnv TEST_PREFIX test-
SetEnv DATABASE_HOST will
AliasMatch ^/Glossary/.*\.gif$ /var/www/alldocs/test$0
AliasMatch ^/Glossary(/.*)? /var/www/alldocs/test/Glossary.html
AliasMatch ^/SingleAlertType(/.*)?$ /var/www/alldocs/test/SingleAlertType.html
AliasMatch ^(/StockInfo/_[^/]*)$ /var/www/alldocs/test$1
AliasMatch ^/StockInfo/[^/]*$ /var/www/alldocs/test/StockInfo/Index.html
AliasMatch ^/StockInfo/.*/ /var/www/alldocs/test/StockInfo/StockInfo.html
RedirectMatch permanent ^/Source/([^/]*)/?(.*) http://test-www.trade-ideas.com/$2
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
SetHandler server-status
AuthType Basic
AuthName "Apache Stats"
AuthUserFile /var/www/passwords/secure
AuthGroupFile /var/www/passwords/groups
Require group employees
# Require ip 76.88.104.9