Code: Select all
sudo nano /etc/nginx/sites-enabled/opencart.conf
Code: Select all
This the following text:
server {
listen 80 default_server;
listen [::]:80 default_server
server_name example.com;
root /var/www/html/commerce/opencart/upload;
index index.php index.htm index.html;
location / { try_files $uri $uri/ /index.php?$args;
}
location ~ .php$ {
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_index index.php;
fastcgi_read_timeout 240;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_split_path_info ^(.+.php)(/.+)$;
}
}
I don't see in any documentation here where such a file is needed to be created ?
What is my requirements for such a .config file and what might be throwing these errors.
Please advise
Thanks