1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
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; } }