Softlink 1412062

Noud van Kruysbergen

c't 12/2014, p.62

Lichtbewolkt

Cubian: Debian voor Cubieboard

Raspbian: Debian voor Raspberry Pi

Nginx-webserverconfiguratie voor Owncloud op de Raspberry Pi:

server {

  listen 80;

  root /var/www;

  index index.php;

  client_max_body_size 1G;

  fastcgi_buffers 64 4K;

  location ~ ^/owncloud/(data|config|.ht|db_structure.xml|README) {

    deny all;

  }

  location / {

    try_files $uri $uri/ index.php;

  }

  location ~ ^(?<script_name>.+?.php)(?<path_info>/.*)?$ {

    try_files $script_name = 404;

    fastcgi_pass 127.0.0.1:9000;

    fastcgi_read_timeout 600;

    fastcgi_param PATH_INFO $path_info;

    fastcgi_param HTTPS off;

    include fastcgi_params;

  }

}