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
Modifications : etc/nginx/site.d/ptitvelo-www/site.conf - Mise en place
[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
20bb326
..
e3b55c2
100644
(file)
--- a/
etc/nginx/site.d/ptitvelo-www/site.conf
+++ b/
etc/nginx/site.d/ptitvelo-www/site.conf
@@
-19,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