location{
....
error_page 404 = /404.php;
}NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /var/www/testsite.local/htdocs
ServerName testsite.local
# Other directives here
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /var/www/site.com
ServerName site.com
# Other directives here
</VirtualHost>php_value auto_prepend_file "replaceuri.php"<?
$_SERVER['REQUEST_URI'] = 'other_page';
?>RPAFheader X-Forwarded-For-nginxproxy_set_header X-Forwarded-For-nginx $proxy_add_x_forwarded_for-nginx;