--- /dev/null
+../...
\ No newline at end of file
--- /dev/null
+server_name
+ clavette-grenoble.heureux-cyclage.org;
+root /home/www/data/org/heureux-cyclage/clavette-grenoble/www/;
+index index.php;
+
+client_body_buffer_size 8k;
+client_max_body_size 10m;
+
+location ~^/(tmp|config)/{
+ return 403;
+}
+location ~ \.html$ {
+ log_not_found off;
+}
+location ~ \.php$ {
+ include /etc/nginx/conf.d/fastcgi.conf;
+ fastcgi_index index.php ;
+ fastcgi_param REDIRECT_STATUS 200;
+ fastcgi_split_path_info ^(.+\.php)(/.+)$;
+
+ fastcgi_pass unix:CAT(sys/php5/fpm/org/heureux-cyclage/clavette-grenoble/socket);
+}
+error_page 404 = @spip;
+
+location @spip {
+ rewrite ^/(.*)(\.html)?$ /spip.php?url_propre=$1&$args last;
+}
+# vim: ft=sh
--- /dev/null
+#!/bin/sh -eu
+# SYNTAX: $path
+# DESCRIPTION: install
+
+# ACTION: initialize from .../lib/tool/admin/
+ tool=$(readlink -e "${0%/install}"/...)/lib/tool/admin
+ . "$tool"/lib/install.sh
+# ACTION: initialize $sv from ./sys/$sv/
+ sv=${cmd##*/etc/}
+ sv=${sv%%/*}
+# ACTION: initialize $site from ./etc/$sv/$site/install
+ site=${cmd##*/"$sv"/}
+ site=${site%/install}
+# ACTION: install from ./etc/nginx/\$site/install
+ "$tool"/etc/nginx/\$site/install "$site"
+# ACTION: install from ./etc/php5/fpm/org/heureux-cyclage/clavette-grenoble/install
+ "$root"/etc/php5/fpm/org/heureux-cyclage/clavette-grenoble/install
+# ACTION: install from ./etc/nginx/org/heureux-cyclage/clavette-grenoble
+ nginx_log_home=$("$tool"/cat sys/nginx/log/home)
+ nginx_log_user=$("$tool"/cat sys/nginx/log/user)
+ pool=$("$tool"/cat sys/php5/fpm/org/heureux-cyclage/clavette-grenoble/user)
+ user=$("$tool"/cat sys/nginx/org/heureux-cyclage/clavette-grenoble/user)
+ home=$("$tool"/cat sys/nginx/org/heureux-cyclage/clavette-grenoble/home)
+ "$tool"/ssh-sudo \
+ install -D -d -m 2750 -o "$nginx_log_user" -g "$nginx_log_user" \
+ "$nginx_log_home"/"$site"/tls
+ "$tool"/ssh-sudo adduser "$pool" "$user"
+ "$tool"/etc/mysql/user/install "$pool"
+ "$tool"/etc/mysql/database/install "$pool"
+ "$tool"/install etc/nginx/org/heureux-cyclage/clavette-grenoble
--- /dev/null
+define(`DOMAIN',`org/heureux-cyclage')dnl
+define(`SITE',`DOMAIN/clavette-grenoble')dnl
+server {
+ listen 80;
+ include /etc/nginx/SITE/common.conf;
+ access_log /home/www/log/SITE/access.log main;
+ error_log /home/www/log/SITE/error.log warn;
+ }
+server {
+ listen 443;
+ include /etc/nginx/SITE/common.conf;
+ include /etc/nginx/conf.d/ssl-pfs.conf;
+ ssl_certificate /etc/nginx/DOMAIN/crt.pem;
+ ssl_certificate_key /etc/nginx/DOMAIN/key.pem;
+ access_log /home/www/log/SITE/tls/access.log main;
+ error_log /home/www/log/SITE/tls/error.log warn;
+}
--- /dev/null
+../...
\ No newline at end of file
--- /dev/null
+.../lib/tool/admin/etc/php5/fpm/$pool/install
\ No newline at end of file
--- /dev/null
+define(`POOL',patsubst(__file__,`^.*/fpm/\(.*\)/[^/]*$',`\1'))dnl
+[POOL]
+access.log = CAT(sys/php5/fpm/POOL/log/home)/access.log
+catch_workers_output = no
+chdir = /
+env[HOSTNAME] = $HOSTNAME
+env[TEMP] = /tmp
+env[TMPDIR] = /tmp
+env[TMP] = /tmp
+group = CAT(sys/php5/fpm/POOL/user)
+#listen = 127.0.0.1:9000
+listen = CAT(sys/php5/fpm/POOL/socket)
+#listen.allowed_clients = 127.0.0.1
+listen.group = CAT(sys/nginx/user)
+listen.mode = 0660
+#listen.owner = www-data
+listen.backlog = -1
+ping.path = /ping
+pm = dynamic
+pm.max_children = 5
+pm.max_requests = 200
+pm.max_spare_servers = 4
+pm.min_spare_servers = 2
+pm.start_servers = 3
+pm.status_path = /status
+request_slowlog_timeout = 5s
+request_terminate_timeout = 120s
+rlimit_core = unlimited
+rlimit_files = 131072
+slowlog = CAT(sys/php5/fpm/POOL/log/home)/slow.log
+user = CAT(sys/php5/fpm/POOL/user)
+#php_admin_value[extension] = pdo_mysql.so
+php_admin_value[extension] = mysql.so
+pm.max_children = 4
+pm.max_requests = 1000
+pm.max_spare_servers = 4
+pm.min_spare_servers = 2
+pm.process_idle_timeout = 60s
+pm.start_servers = 2
+request_slowlog_timeout = 5s
+request_terminate_timeout = 120s
+rlimit_core = unlimited
+rlimit_files = 131072
+security.limit_extensions = .php
--- /dev/null
+../...
\ No newline at end of file
--- /dev/null
+/home/www/data/org/heureux-cyclage/clavette-grenoble
\ No newline at end of file
--- /dev/null
+www-lhc-clav-gre
\ No newline at end of file
--- /dev/null
+../...
\ No newline at end of file
--- /dev/null
+/etc/php5/fpm/org/heureux-cyclage/clavette-grenoble
\ No newline at end of file
--- /dev/null
+../...
\ No newline at end of file
--- /dev/null
+/home/www/log/php5/fpm/org/heureux-cyclage/clavette-grenoble
\ No newline at end of file
--- /dev/null
+/run/php5/fpm/lhc_clav_gre
\ No newline at end of file
--- /dev/null
+php_lhc_clav_gre
\ No newline at end of file