--- /dev/null
+pool=lhc_clav_gre
+sudo adduser php_"$pool" www-"$site"
+#sudo adduser www-"$site"-tls www-"$site"
+"$tool"/local/mysql-user-create php_"$pool"
+"$tool"/local/mysql-database-create php_"$pool"
--- /dev/null
+server_name
+ clavette-grenoble.heureux-cyclage.org;
+root /home/www/data/lhc-clav-gre/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_gre;
+}
+error_page 404 = @spip;
+
+location @spip {
+ rewrite ^/(.*)(\.html)?$ /spip.php?url_propre=$1&$args last;
+}
+# vim: ft=sh
--- /dev/null
+#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