Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- DocumentRoot /var/www/projects/health1.india.com
- ServerName health.india.com
- ServerAlias www.health.india.com origin.health.india.com
- CustomLog logs/health.india.com-access.log varnishcombined
- ErrorLog logs/health.india.com-error.log
- # CustomLog /dev/null common
- # ErrorLog /dev/null
- setEnv HOSTNAME health.india.com
- setEnv APP_HOST_PREFIX
- setEnv DB_HOST 172.16.1.152
- setEnv DB_NAME health_v2_india_com
- setEnv DB_USER health_user
- setEnv DB_PASSWORD 'HE@lTH'
- setEnv VIEW_TRACKER_PATH 'http://tk.ind.sh/view.php'
- setEnv SERVICE_ID "15"
- php_admin_value error_reporting 22527
- php_admin_value error_log /dev/null
- php_admin_flag log_errors On
- php_admin_flag display_errors Off
- ProxyPass /symptoms-search http://medgle.com/symptoms-search
- ProxyPassReverse /symptoms-search http://medgle.com/symptoms-search
- ProxyPass /ajaxmatch.jsp http://medgle.com/ajaxmatch.jsp
- ProxyPassReverse /ajaxmatch.jsp http://medgle.com/ajaxmatch.jsp
- <Directory /var/www/projects/health1.india.com>
- AllowOverride All
- Options FollowSymLinks MultiViews
- # AuthType Basic
- # AuthName "Beta Health Site"
- # AuthUserFile /var/www/projects/health.india.com/.htpasswd
- # Require valid-user
- # Order allow,deny
- # allow from all
- </Directory>
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^www\.health\.india\.com [NC]
- RewriteCond %{HTTP_HOST} !^$
- RewriteRule ^/(.*) http://health.india.com/$1 [L,R=301]
- RewriteCond %{HTTP_USER_AGENT} !^MediafedMetrics.*
- RewriteCond %{QUERY_STRING} &?feed=feed1
- RewriteRule / http://health.feedsportal.com/c/34928/f/646176/index.rss?
- #added to control spam
- RewriteCond %{REQUEST_METHOD} POST
- RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
- RewriteCond %{HTTP_REFERER} !.*health.india.com.* [OR]
- RewriteCond %{HTTP_USER_AGENT} ^$
- RewriteRule (.*) http://%{REMOTE_ADDR}/$ [R=301,L]
- # RewriteLog "/tmp/rewrite.log"
- # RewriteLogLevel 2
- #RewriteCond %{QUERY_STRING} ^((.*?)&|)utm_
- #RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1?%2 [R=301,NE,L]
- </IfModule>
- </VirtualHost>
- <VirtualHost *:80>
- DocumentRoot /var/www/projects/health1.india.com
- ServerName origin.st1.health.india.com
- ServerAlias st1.health.india.com
- <Directory /var/www/projects/health.india.com>
- AllowOverride All
- </Directory>
- <IfModule mod_rewrite.c>
- RewriteEngine On
- Rewritecond %{HTTP_HOST}/$1 ^([^.]+)\.st1\.health\.india\.com [NC,OR]
- Rewritecond %{HTTP_HOST}/$1 ^st1\.health\.india\.com [NC]
- RewriteCond %{REQUEST_URI} ^/$
- RewriteRule ^/(.*) http://health.india.com/$1 [L,R=301]
- </IfModule>
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement