官术网_书友最值得收藏!

How it works...

There are a number of directives which aren't seen elsewhere because this recipe uses a specific Passenger module. In the core NGINX configuration file, we set the generic Passenger variables to use the correct Ruby version as well as the user which will run the Passenger server.

In our server block directive, we point Passenger to our demo Rails instance and enable Passenger for the server instance. There's also a basic assets location block directive, so that NGINX will process the static media natively.

Lastly, we call passenger_pre_start to automatically start the Passenger application server when NGINX starts. This saves you having to start it separately, as is the case for most other application servers.

主站蜘蛛池模板: 霸州市| 平安县| 宾阳县| 连南| 青神县| 鞍山市| 资中县| 车致| 兴化市| 巴青县| 吉木乃县| 汝南县| 伽师县| 奉化市| 仪陇县| 桂东县| 周至县| 高邑县| 中西区| 当涂县| 曲阳县| 东山县| 云梦县| 富源县| 双鸭山市| 卢龙县| 土默特左旗| 江城| 丰台区| 南宁市| 汝阳县| 新津县| 白山市| 城固县| 庆云县| 永康市| 沂水县| 彩票| 池州市| 澄迈县| 波密县|