无法在 Akeneo 中获取带有查询字符串的页面

问题描述

我已经在我的集群中安装了 Akeneo(一种产品界面管理)。安装结束的主要问题是我无法获取带有一些查询参数的页面

例如/api/rest/v1/products?page=2&with_count=true&pagination_type=page&limit=50

我遇到了这种错误

Moved Permanently

我的 Akeneo 在 Nginx 后面提供,我怀疑它,尤其是配置。

location / {
    try_files $uri $uri/ /index.PHP?$query_string;
}

这里是整个配置

#user www www nobody;
worker_processes  5;  ## Default: 1
error_log  /dev/stdout info;
#pid        /run/NginxNginx.pid;
worker_rlimit_nofile 8192;
daemon off;


events {
  worker_connections  4096;  ## Default: 1024
}

http {
  include    /etc/Nginx/mime.types;
  include    /etc/Nginx/fastcgi.conf;
  index      index.html index.htm index.PHP;

  default_type application/octet-stream;

  access_log   /dev/stdout  json_analytics;
  sendfile     on;
  tcp_nopush   on;
  server_names_hash_bucket_size 128; # this seems to be required for some vhosts

  server {
    listen  8080;
    root /var/www/html/public;
    index index.PHP index.html;

    location ~ \.PHP$ {
        fastcgi_pass unix:/run/PHP/PHP-fpm.socket;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param SCRIPT_NAME $fastcgi_script_name;
    }

    location / {
        try_files $uri $uri/ /index.PHP?$query_string;
    }

    location ~*  \.(jpg|jpeg|png|gif|css|js|ico)$ {
        expires max;
        log_not_found off;
    }

    location ~ /\.ht {
        deny all;
    }

location ~ /\. {
    deny all;
}

} }

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)