From a8e29d53480b20bcbc0dadcba046d908a85c9b91 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sat, 9 Mar 2019 13:05:35 +0100 Subject: [PATCH] update config --- etc/apache2.conf | 5 +++++ etc/fpm-pool.conf | 43 +++++++++++++++++++++++++++++++++++++++++++ public/html.php | 1 + 3 files changed, 49 insertions(+) create mode 100644 etc/fpm-pool.conf diff --git a/etc/apache2.conf b/etc/apache2.conf index aeba207..dbb2a40 100644 --- a/etc/apache2.conf +++ b/etc/apache2.conf @@ -9,9 +9,14 @@ Options Indexes FollowSymLinks MultiViews AllowOverride None Require all granted + RemoveHandler .phar + SetHandler default-handler ForceType application/phar + + SetHandler "proxy:unix:/run/php/php-replicator.sock|fcgi://localhost" + diff --git a/etc/fpm-pool.conf b/etc/fpm-pool.conf new file mode 100644 index 0000000..919415b --- /dev/null +++ b/etc/fpm-pool.conf @@ -0,0 +1,43 @@ +; Start a new pool named 'www'. +; the variable $pool can be used in any directive and will be replaced by the +; pool name ('www' here) +[replicator] + +user = www-data +group = www-data + +listen = /run/php/php-$pool.sock +listen.owner = www-data +listen.group = www-data +;listen.mode = 0660 + +pm = dynamic +pm.max_children = 20 +pm.start_servers = 2 +pm.min_spare_servers = 1 +pm.max_spare_servers = 3 +;pm.max_requests = 500 + +slowlog = /var/log/php-fpm.log.slow +request_slowlog_timeout = 30 + +; Depth of slow log stack trace. +; Default Value: 20 +;request_slowlog_trace_depth = 20 + +; The timeout for serving a single request after which the worker process will +; be killed. This option should be used when the 'max_execution_time' ini option +; does not stop script execution for some reason. A value of '0' means 'off'. +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) +; Default Value: 0 +;request_terminate_timeout = 0 + +; Chdir to this directory at the start. +; Note: relative path can be used. +; Default Value: current directory or / when chroot +chdir = /var/www/$pool + +; Note: set an empty value to allow all extensions. +; Default Value: .php +security.limit_extensions = .php + diff --git a/public/html.php b/public/html.php index 5222f9d..13ed7be 100644 --- a/public/html.php +++ b/public/html.php @@ -4,6 +4,7 @@ const NCURRENT = 2; require_once "index.php"; ob_start($res); +$res->addHeader("Link", "<".dirname((new http\Env\Url)->path)."concise/css/concise.min.css>; rel=preload; as=style"); ?> -- 2.30.2