Struggled with Moodle (Nginx)
Posted: Thu Feb 11, 2021 3:09 pm
I am working on nginx as the 1st time user (previously with Apache for years).
Debian 10.7
Php 7.3 (fpm)
MariaDB 10.3.27
File: /home/admin/conf/web/example.com.nginx.ssl.conf (also example.com.nginx.conf)
Actually, I am trying many different options and settings. It is now showing me "file not found" for all links including "log in" in the front page.
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
fastcgi_pass unix:/run/php/php7.3-fpm-example.com.sock;
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
I have found the index.php misplaced. Unfortunately, the amendment doesn't help.
Debian 10.7
Php 7.3 (fpm)
MariaDB 10.3.27
File: /home/admin/conf/web/example.com.nginx.ssl.conf (also example.com.nginx.conf)
Actually, I am trying many different options and settings. It is now showing me "file not found" for all links including "log in" in the front page.
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
fastcgi_pass unix:/run/php/php7.3-fpm-example.com.sock;
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
I have found the index.php misplaced. Unfortunately, the amendment doesn't help.