[local/dovecot-user-add] ~correction champ from du courriel de bienvenu
[lhc/ateliers.git] / etc / nginx / site.d / veloc-www / site.conf
1 server_name
2 velocampus.heureux-cyclage.org
3 www.velocampus.net;
4 root /home/www/data/veloc-www/www;
5 index index.php;
6
7 client_body_buffer_size 8k;
8 client_max_body_size 10m;
9
10 location ~^/(tmp|config)/{
11 return 403;
12 }
13 location ~ \.php$ {
14 include /etc/nginx/conf.d/fastcgi.conf;
15 fastcgi_index index.php ;
16 fastcgi_param REDIRECT_STATUS 200;
17 fastcgi_split_path_info ^(.+\.php)(/.+)$;
18
19 fastcgi_pass unix:/run/php5/fpm/veloc_www;
20 }
21 error_page 404 = @spip;
22
23 location @spip {
24 rewrite ^/(.*)(\.html)?$ /spip.php?url_propre=$1&$args last;
25 }
26 # vim: ft=sh