blob: 6a4893e8f1fd0a93265d6336910d96cf65bbdfcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Introduction
This is the [PKGBUILD][PKGBUILD] and related source files to build
[nginx][nginx] with support for [Phusion Passenger][passenger] on [Arch Linux][archlinux].
# Instructions
What, you wanted step-by-step install instructions? [This package][aur-this-package]
is available from the [AUR][aur]. You can install it by using the official
method for installing unsupported packages, which is exhaustively described in
the [Arch User Repository][aur-wiki] wiki article.
# Configuration
Once you've installed this package, nginx needs to be configured to enable passenger. Example:
```nginxconf
#
# File: /etc/nginx/nginx.conf
#
http {
# Recommended
server_tokens off;
passenger_show_version_in_header off;
# Required
passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
passenger_ruby /usr/bin/ruby;
...
# Example server block
server {
listen 443 ssl http2;
server_name www.example.com;
root /srv/http/example/public; # <-- be sure to point to 'public'!
passenger_enabled on;
...
}
...
}
```
Please consult the [Passenger Library][passenger-library] for more advanced configuration.
[archlinux]: https://www.archlinux.org
[aur-this-package]: https://aur.archlinux.org/packages/nginx-passenger
[aur-wiki]: https://wiki.archlinux.org/index.php/Arch_User_Repository
[aur]: https://aur.archlinux.org/
[nginx]: https://nginx.org/
[passenger-library]: https://www.phusionpassenger.com/library/config/nginx/reference/
[passenger]: https://www.phusionpassenger.com/
[PKGBUILD]: https://wiki.archlinux.org/index.php/PKGBUILD
|