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.

24 lines
897 B

  1. {% extends "roles/nginx/templates/service.conf" %}
  2. {% block proxy_conf %}
  3. root /usr/share/dokuwiki;
  4. index doku.php;
  5. location ~ /(data/|conf/|bin/|inc/|install.php) { deny all; }
  6. location / { try_files $uri $uri/ @dokuwiki; }
  7. location @dokuwiki {
  8. rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
  9. rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last;
  10. rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last;
  11. rewrite ^/(.*) /doku.php?id=$1&$args last;
  12. }
  13. location ~ \.php$ {
  14. try_files $uri $uri/ /doku.php;
  15. include fastcgi_params;
  16. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  17. fastcgi_param REDIRECT_STATUS 200;
  18. fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
  19. }
  20. {% endblock %}