Actions

Translations

General FAQ/70/nl: Difference between revisions

From LimeSurvey Manual

(Created page with "<syntaxhighlight lang="apache">server { set $host_path "/PATH/TO/LIMESURVEY"; server_name YOUR.SERVER.FQDN; root /PATH/TO/LIMESURVEY; charset utf-8; try_f...")
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 4: Line 4:
     root /PATH/TO/LIMESURVEY;
     root /PATH/TO/LIMESURVEY;
     charset utf-8;
     charset utf-8;
     try_files $uri /index.php?$args;
     try_files $uri /index.php?$uri&$args;
     location ~ ^/(protected|framework|themes/\w+/views) {
    # Disallow reading inside php script directory, see issue with debug > 1 on note
     location ~ ^/(application|docs|framework|locale|protected|tests|themes/\w+/views) {
         deny  all;
         deny  all;
     }
     }
     #avoid processing of calls to unexisting static files by yii
     # Disallow reading inside runtime directory
     location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
     location ~ ^/tmp/runtime/ {
         try_files $uri =404;
         deny all;
    }
    location ~ \.php$ {
        fastcgi_split_path_info  ^(.+\.php)(.*)$;
        try_files $uri index.php;
        fastcgi_pass  127.0.0.1:9000; # Change this to match your settings
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_param SCRIPT_NAME      $fastcgi_script_name;
     }
     }
}</syntaxhighlight>

Latest revision as of 16:09, 28 March 2023

Message definition (General FAQ)
<syntaxhighlight lang="apache">server {
   set $host_path "/PATH/TO/LIMESURVEY";
   server_name  YOUR.SERVER.FQDN;
   root /PATH/TO/LIMESURVEY;
   charset utf-8;
   try_files $uri /index.php?$uri&$args;
   # Disallow reading inside php script directory, see issue with debug > 1 on note
   location ~ ^/(application|docs|framework|locale|protected|tests|themes/\w+/views) {
       deny  all;
   }
   # Disallow reading inside runtime directory
   location ~ ^/tmp/runtime/ {
       deny  all;
   }

<syntaxhighlight lang="apache">server {

   set $host_path "/PATH/TO/LIMESURVEY";
   server_name  YOUR.SERVER.FQDN;
   root /PATH/TO/LIMESURVEY;
   charset utf-8;
   try_files $uri /index.php?$uri&$args;
   # Disallow reading inside php script directory, see issue with debug > 1 on note
   location ~ ^/(application|docs|framework|locale|protected|tests|themes/\w+/views) {
       deny  all;
   }
   # Disallow reading inside runtime directory
   location ~ ^/tmp/runtime/ {
       deny  all;
   }