Page 1 of 1

Configuring nginx for aimeos laravel (SOLUTION)

Posted: 06 Jan 2020, 10:54
by goodwork
ENV:
Any versions of aimeos
php > 7
NGINX with php-fpm

PROBLEMS:
Categories page does not work in admin panel,
locale change page does not work in admin panel

SOLUTION:
Aimeos works fine on nginx, but you need to fix the standard configuration a bit, it's working example:
server {
listen 80;
server_name shop.pro-look.ru;
root /var/www/shop.pro-look.ru/public;
index index.php;

location / {
try_files $uri $uri/ /index.php$is_args$query_string;
}
# Pass the PHP scripts to FastCGI server
location ~ \.php$ {
try_files $uri /index.php =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}


TAGS:
aimeos categories white page,
aimeos admin categories page does not work
aimeos admin locale does not change