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

  • NGINX Cookbook
  • Tim Butler
  • 118字
  • 2021-07-03 00:04:30

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.

主站蜘蛛池模板: 榆林市| 海宁市| 永寿县| 若尔盖县| 融水| 沧源| 高要市| 壤塘县| 铜鼓县| 邵阳市| 巫山县| 阿克陶县| 佛山市| 南岸区| 平阳县| 于都县| 新密市| 阿克| 上虞市| 乡城县| 聂拉木县| 吉水县| 右玉县| 马山县| 山东| 赫章县| 陕西省| 措勤县| 峨眉山市| 贵德县| 灵川县| 修武县| 垣曲县| 汉中市| 孝昌县| 五莲县| 杭锦旗| 观塘区| 郑州市| 奈曼旗| 祁连县|