modified mod proxy URL generation logic to trigger based on presence of X-Forwarded-For