1234567891011121314151617181920212223242526272829303132333435363738 |
- server {
- listen 80;
- listen [::]:80;
- root /var/www/moodle;
-
- index index.php index.html index.htm;
- server_name localhost;
- access_log /var/log/nginx/moodle-access.log;
- error_log /var/log/nginx/moodle-error.log;
-
-
- include snippets/allowed.conf;
- include snippets/denied.conf;
- location / {
-
-
- try_files $uri $uri/ =404;
- }
-
-
- location ~ [^/]\.php(/|$) {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_index index.php;
- fastcgi_pass unix:/run/php/php7.2-fpm.sock;
- include fastcgi_params;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
|