Date posted : 18/01/2019

Apache Rules for wildcard API end points

In this post, we’re going to explain about adding apache rules for accessing multiple API end points.

For instance, if you would like to run below api’s. You need apply some apache rules in order to accept those API end points in common.

https://pheonixsolutions.com/api/V1
https://pheonixsolutions.com/api/V2

You need update the rules inside VirtualHost definition of pheonixsolutions.com domain section.

And the rules are below:-

ProxyPreserveHost On
ProxyPassMatch    "/api(.*)" "http://localhost:9000/api$1"
ProxyPassReverse  "/api(.*)" "http://localhost:9000/api$1"

That’s it. We’re done.

Thank you! for using PHEONIX SOLUTIONS.

You find this tutorial helpful? Share with your friends to keep it alive. Be the first to comment, we value your suggestions. For further queries please comment below.


Leave a Reply