Php version:
Code: Select all
php --version
PHP 7.4.25 (cli) (built: Oct 23 2021 21:53:50) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.25, Copyright (c), by Zend Technologies
Php version:
Code: Select all
php --version
PHP 7.4.25 (cli) (built: Oct 23 2021 21:53:50) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.25, Copyright (c), by Zend Technologies
I tried it several times. I put the conf-file into each time in several folders: "/etc/nginx/ sites-enabled", "/etc/nginx/sites-available", "etc/nginx/conf.d".Edi wrote: ↑Mon Nov 08, 2021 9:04 pm Here are the informations about using Nginx in the documentation:
https://docs.bludit.com/en/webservers/nginx
If this does not help I will ask Diego, the developer, to have a look at it.
Code: Select all
GNU nano 5.4 bludit.conf
server {
listen 80;
server_name example.com;
root /www/bludit;
index index.php;
access_log /var/log/nginx/example.log;
error_log /var/log/nginx/example.log;
location ~ \.(jpg|jpeg|gif|png|css|js|ico|svg|eot|ttf|woff|woff2|otf)$ {
access_log off;
expires 30d;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php/php-fpm.sock;
fastcgi_index index.php;
include fastcgi.conf;
}
location /bludit {
try_files $uri $uri/ /bludit/index.php?$args;
}
location ^~ /bl-content/databases/ { deny all; }
location ^~ /bl-content/workspaces/ { deny all; }
location ^~ /bl-content/pages/ { deny all; }
location ^~ /bl-kernel/*.php { deny all; }
}
Code: Select all
<?php echo $page->coverImage(); ?>