Configuring nginx for aimeos laravel (SOLUTION)

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
goodwork
Posts: 8
Joined: 01 Jan 2020, 22:35

Configuring nginx for aimeos laravel (SOLUTION)

Post by goodwork » 06 Jan 2020, 10:54

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