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

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny