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

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.

主站蜘蛛池模板: 田阳县| 建水县| 乾安县| 万年县| 扎兰屯市| 婺源县| 汕头市| 聂拉木县| 闸北区| 富锦市| 泸溪县| 景洪市| 彭州市| 通渭县| 湟中县| 札达县| 思南县| 开远市| 岢岚县| 西丰县| 容城县| 垣曲县| 奈曼旗| 澄迈县| 军事| 和林格尔县| 遂昌县| 寿阳县| 仙游县| 梓潼县| 当涂县| 昭通市| 文成县| 丹棱县| 宁蒗| 名山县| 泰州市| 信宜市| 峨边| 千阳县| 达拉特旗|