Configuring nginx for aimeos laravel (SOLUTION)
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Configuring nginx for aimeos laravel (SOLUTION)
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
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