简体   繁体   中英

Ubuntu server with RVM, Phusion Passenger, Apache and Nginx

I have an Ubuntu server 14.04 running with RVM, MySQL, Phussion Passenger and Apache.

In this server I have more than 30 Ruby on Rails projects serving webs through Phussion Passenger and Apache.

I read that Nginx is faster than Apache and I want to try it with some of the projects and leave the others with Apache.

It's posible to have apache2 module and nginx module for passenger installed and runining at same time? And have some projects runing with apache2 module and others with nginx module?

Thanks!!

You can probably run them both but it sounds like a mess. You will probably be better off with just Nginx and the Passenger module.

Yes you can use them both at the same server. But only one server can listen 80 port. To avoid this, you may consider using nginx as a proxy server in front of apache. I mean, for those sites which you want to serve them from apache, you may use nginx as a proxy server. And for others you may serve them directly from nginx.

This is a good tutorial for using nginx as a proxy for apache.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM