Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
830 B

  1. server {
  2. listen 80;
  3. client_max_body_size 4M;
  4. client_body_buffer_size 128k;
  5. root /usr/share/dokuwiki;
  6. index doku.php;
  7. location ~ /(data/|conf/|bin/|inc/|install.php) { deny all; }
  8. location / { try_files $uri $uri/ @dokuwiki; }
  9. location @dokuwiki {
  10. rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
  11. rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last;
  12. rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last;
  13. rewrite ^/(.*) /doku.php?id=$1&$args last;
  14. }
  15. location ~ \.php$ {
  16. try_files $uri $uri/ /doku.php;
  17. include fastcgi_params;
  18. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  19. fastcgi_param REDIRECT_STATUS 200;
  20. fastcgi_pass unix:/var/run/php5-fpm.sock;
  21. }
  22. }