Gist · 24 / URL: https://kallithea.nomadicista.nz/_admin/gists/24
Public Gist
Hubzilla Nginx Conf
Expires: Never
stuart - created 5 years and 4 months ago
added file: Hubzilla Nginx Conf
Hubzilla Nginx Conf
server {
    listen 80;
    listen [::]:80;
    root /var/www/html/limesurvey;
    index  index.php index.html index.htm;
    server_name  example.com www.example.com;

    client_max_body_size 100M;

    location / {
        if ($is_args != "") {
        rewrite ^/(.*) /index.php?q=$uri&$args last;
      }
    rewrite ^/(.*) /index.php?q=$uri last;
      }


    location ~ \.php$ {
         include snippets/fastcgi-php.conf;
         fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
         include fastcgi_params;
    }
}