Highlighted

Coldfusion with Apache, RESTful API on port 80

New Here ,
May 17, 2019

Copy link to clipboard

Copied

Hi,

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:

1) worker.properties

i added a new worker in the worker list (example name: "newworker") and i defined it in this way:

worker.our-cf-instance.type=ajp13

worker.our-cf-instance.host=localhost

worker.our-cf-instance.port=9151

worker.our-cf-instance.connection_pool_timeout=60

worker.our-cf-instance.max_reuse_connections=250

worker.our-cf-instance.connection_pool_size=500

worker.our-cf-instance.lbfactor=1

worker.our-cf-instance.route=newworker

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?

Thank you

Views

226

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Coldfusion with Apache, RESTful API on port 80

New Here ,
May 17, 2019

Copy link to clipboard

Copied

Hi,

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:

1) worker.properties

i added a new worker in the worker list (example name: "newworker") and i defined it in this way:

worker.our-cf-instance.type=ajp13

worker.our-cf-instance.host=localhost

worker.our-cf-instance.port=9151

worker.our-cf-instance.connection_pool_timeout=60

worker.our-cf-instance.max_reuse_connections=250

worker.our-cf-instance.connection_pool_size=500

worker.our-cf-instance.lbfactor=1

worker.our-cf-instance.route=newworker

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?

Thank you

Views

227

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 17, 2019 0

Have something to add?

Join the conversation