2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 21:33:02 +01:00

update dokuwiki

This commit is contained in:
kev
2017-03-31 14:32:41 +08:00
parent fadb657195
commit e230f16705
3 changed files with 74 additions and 71 deletions

View File

@@ -22,4 +22,3 @@ VOLUME /var/www/html/data/pages \
/var/www/html/data/media_meta \
/var/www/html/data/attic \
/var/www/html/conf

View File

@@ -15,14 +15,14 @@ http {
server {
listen 80;
server_name _;
client_max_body_size 4M;
client_body_buffer_size 128k;
root /var/www/html;
index doku.php;
location ~ /(data/|conf/|bin/|inc/) { deny all; }
location ~ /(data/|conf/|bin/|inc/) {
deny all;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 31536000s;
@@ -31,7 +31,9 @@ http {
log_not_found off;
}
location / { try_files $uri $uri/ @dokuwiki; }
location / {
try_files $uri $uri/ @dokuwiki;
}
location @dokuwiki {
rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;

View File

@@ -15,14 +15,14 @@ http {
server {
listen 80;
server_name _;
client_max_body_size 4M;
client_body_buffer_size 128k;
root /var/www/html;
index doku.php;
location ~ /(data/|conf/|bin/|inc/) { deny all; }
location ~ /(data/|conf/|bin/|inc/) {
deny all;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 31536000s;
@@ -31,7 +31,9 @@ http {
log_not_found off;
}
location / { try_files $uri $uri/ @dokuwiki; }
location / {
try_files $uri $uri/ @dokuwiki;
}
location @dokuwiki {
rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;