To Restrict Request_URI for "/server-status/pingFromApplicare" from url redirection with virtual host configuration in apache.
1. Go to <ApacheServer_Home_Dir>/conf/extra and edit httpd-vhosts.conf file.
2. Add the RewriteCondition command inside all your needed <VirtualHost *:*> tags, one line before the "RewriteRule" command.
Command:- "RewriteCond %{REQUEST_URI} !/server-status/pingFromApplicare"
For Example:
<VirtualHost *:*>
RewriteEngine on
ProxyPreserveHost On
RewriteCond %{REQUEST_URI} !/server-status/pingFromApplicare
RewriteRule ^(.*)$ hostaddress:port
</VirtualHost>
3. Restart Apache server.
Please sign in to leave a comment.
Comments
0 comments