elbereth / dashninja-be

Dash Ninja Back-End (Private Rest API)
GNU General Public License v3.0
4 stars 18 forks source link

How to configure php to answer only to calls to api/index.php rewriting to end-point api/ ? #3

Open chainator opened 5 years ago

chainator commented 5 years ago

I'm using Nginx and php-fpm. How do configure php to answer only to calls to api/index.php rewriting to end-point api/ ?

If possible, would you be able to share your nginx config block for these rewrites?