Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revisionBoth sides next revision | ||
| code:dokuwiki [2014/08/15 02:00] ::ffff:83.133.179.144 created | code:dokuwiki [2017/11/18 17:00] (current) ::ffff:85.181.5.238 | ||
|---|---|---|---|
| Line 76: | Line 76: | ||
| </ | </ | ||
| - | ==== links ==== | + | ==== php-fpm |
| - | | + | for reverse proxy setup see [[.: |
| + | <file nginx / | ||
| + | client_max_body_size 50m; | ||
| + | fastcgi_read_timeout 180; | ||
| + | |||
| + | ## needed because of the reverse proxy | ||
| + | ## x_forwarded port ans stuff is set there | ||
| + | |||
| + | map $http_x_forwarded_port $external_port { | ||
| + | default $http_x_forwarded_port; | ||
| + | '' | ||
| + | } | ||
| + | map $http_x_forwarded_proto $external_proto { | ||
| + | '' | ||
| + | ' | ||
| + | ' | ||
| + | } | ||
| + | |||
| + | server { | ||
| + | listen [::]:80 default; | ||
| + | server_name notomorrow.de *.notomorrow.de; | ||
| + | |||
| + | error_log | ||
| + | root / | ||
| + | index index.php index.html; | ||
| + | |||
| + | include | ||
| + | include | ||
| + | include | ||
| + | include | ||
| + | } | ||
| + | </ | ||
| + | <file nginx / | ||
| + | location ~ \.php$ { | ||
| + | fastcgi_split_path_info ^(.+\.php)(/ | ||
| + | fastcgi_index | ||
| + | |||
| + | # | ||
| + | # | ||
| + | # | ||
| + | |||
| + | include fastcgi_params; | ||
| + | |||
| + | fastcgi_param | ||
| + | fastcgi_param | ||
| + | |||
| + | fastcgi_intercept_errors on; | ||
| + | fastcgi_pass unix:/tmp/php-fpm-notomorrow.de.sock; | ||
| + | |||
| + | } | ||
| + | </ | ||
| + | <file php / | ||
| + | [notomorrow.de] | ||
| + | user = notomorrow-de | ||
| + | group = notomorrow-de | ||
| + | listen.owner = notomorrow-de | ||
| + | listen.group = notomorrow-de | ||
| + | listen = '/ | ||
| + | pm = dynamic | ||
| + | pm.max_children = 5 | ||
| + | pm.start_servers = 2 | ||
| + | pm.min_spare_servers = 1 | ||
| + | pm.max_spare_servers = 3 | ||
| + | |||
| + | </ | ||