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: config nginx du Wiklou suite a la migration vers la derniere lts
[lhc/ateliers.git]
/
etc
/
nginx
/
site.d
/
lhc-wiklou
/
site.conf
diff --git
a/etc/nginx/site.d/lhc-wiklou/site.conf
b/etc/nginx/site.d/lhc-wiklou/site.conf
index
861ddf8
..
d53fd3c
100644
(file)
--- a/
etc/nginx/site.d/lhc-wiklou/site.conf
+++ b/
etc/nginx/site.d/lhc-wiklou/site.conf
@@
-7,8
+7,13
@@
client_body_buffer_size 8k;
client_max_body_size 10m;
location / {
client_max_body_size 10m;
location / {
- index index.html index.htm index.php;
- }
+ try_files $uri $uri/ @rewrite;
+}
+
+location @rewrite {
+ rewrite ^/(.*)$ /index.php?title=$1&$args;
+}
+
location ~ \.php$ {
include /etc/nginx/conf.d/fastcgi.conf;
fastcgi_index index.php ;
location ~ \.php$ {
include /etc/nginx/conf.d/fastcgi.conf;
fastcgi_index index.php ;