Copy link to clipboard
we have installed Coldfusion 2018 with Apache web server and CF Api Manager on our SUSE server.
We have many CF instances and one of these provides some RESTful services.
I configured apis in the CF Api Manager and now our REST enpoints are accessible at ports 9100 and 9151 (ajp), but we want our customers to use this services with port 80 keeping other ports closed.
The endpoints are located somewhere like https://our_domain1.com/rest/services/ ..
So i've modify the following two Apache configuration files:
i added a new worker in the worker list (example name: "newworker") and i defined it in this way:
2) uriworkermap_our-cf-instance.properties (in /opt/coldfusion2018/config/wsconfig/1/)
i set the new worker for /rest/*
/rest/* = newworker
It works, now the endpoints are reachable through port 80, and apache matches requests containing "/rest/*" and routes them to port 9151 (ajp of API Manager Proxy)
i would like to know: it's this the best way?
could it introduce some security issues?
is there a better way to achieve that?
Have something to add?