--- /dev/null
+../...
\ No newline at end of file
--- /dev/null
+server_name
+ clavette-lyon.heureux-cyclage.org;
+root /home/www/data/org/heureux-cyclage/clavette-lyon/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:/run/php5/fpm/lhc_clav_lyon;
+}
+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"
+# TODO: invoke php install script /etc/php5/fpm/org/heureux-cyclage/clavette-lyon/install
+# ACTION: install from ./etc/nginx/org/heureux-cyclage/clavette-lyon
+ 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-lyon/pool)
+ user=$("$tool"/cat sys/nginx/org/heureux-cyclage/clavette-lyon/user)
+ home=$("$tool"/cat sys/nginx/org/heureux-cyclage/clavette-lyon/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-lyon
--- /dev/null
+define(`DOMAIN',`org/heureux-cyclage/clavette-lyon')dnl
+define(`SITE',`DOMAIN/www')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
+/home/www/data/org/heureux-cyclage/clavette-lyon
\ No newline at end of file
--- /dev/null
+www-lhc-clav-lyon
\ No newline at end of file
--- /dev/null
+../...
\ No newline at end of file
--- /dev/null
+php_lhc_clav_lyon
\ No newline at end of file