dépôts
/
lhc
/
ateliers.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[local/dovecot-user-add] ~correction champ from du courriel de bienvenu
[lhc/ateliers.git]
/
etc
/
nginx
/
site.d
/
ptitvelo-www
/
site.conf
diff --git
a/etc/nginx/site.d/ptitvelo-www/site.conf
b/etc/nginx/site.d/ptitvelo-www/site.conf
index
7e89d31
..
c0751b1
100644
(file)
--- a/
etc/nginx/site.d/ptitvelo-www/site.conf
+++ b/
etc/nginx/site.d/ptitvelo-www/site.conf
@@
-1,16
+1,13
@@
server_name
ptitvelo.heureux-cyclage.org
server_name
ptitvelo.heureux-cyclage.org
-
www
.ptitvelo.net
- ptitvelo.net;
+
devel
.ptitvelo.net
+
www.
ptitvelo.net;
root /home/www/data/ptitvelo-www/www;
index index.php;
client_body_buffer_size 8k;
client_max_body_size 10m;
root /home/www/data/ptitvelo-www/www;
index index.php;
client_body_buffer_size 8k;
client_max_body_size 10m;
-location / {
- try_files $uri $uri/ /spip.php?q=$uri&$args;
-}
location ~^/(tmp|config)/{
return 403;
}
location ~^/(tmp|config)/{
return 403;
}
@@
-22,4
+19,10
@@
location ~ \.php$ {
fastcgi_pass unix:/run/php5/fpm/ptitvelo_www;
}
fastcgi_pass unix:/run/php5/fpm/ptitvelo_www;
}
+error_page 404 = @spip;
+
+location @spip {
+ rewrite ^/(.*)(\.html)?$ /spip.php?url_propre=$1&$args last;
+}
+
# vim: ft=sh
# vim: ft=sh