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