Apache with Passenger for Static HTML Pages

2019-09-03 12:16发布

问题:

I have a Sinatra app deployed on a Passenger server which is talking to Apache via Rack. I was wondering for the static pages if I need not go through the rack implementation as it would be a additional and necessary overhead to display static pages.

So is there a way i can put a condition to Apache to respond to certain URI directly with the static pages and for some to pass it to the Passenger API?

Is this possible via some configuration in Apache or does everything have to go via Rack?