문제

I have a client who needs to use apache-tomcat as their web server for specific reasons. But I'd like to use unicorn as the application server and haven't seen many people doing this. Is there a way to do this?

올바른 솔루션이 없습니다

다른 팁

This is a bad idea. Ruby application servers like unicorn benefit from a general purpose web server like Apache or nginx being used a front-end, but using a Tomcat Java application server as a front-end adds extra complexity with much benefit.

That being said, you can configure the embedded Apache instance within Tomcat as a reverse proxy to serve traffic from a unicorn app server:

# Assuming unicorn running locally on port 8081:
ProxyPassReverse  /  http://localhost:8081/
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top