0

管理パネルへのログインで問題が発生しています。

エラー : 162.209.98.218index.php でサーバーが見つかりません (ip と index.php の間に / がありません)

nginxサーバーまたはデータベースで変更するにはどうすればよいですか?

4

2 に答える 2

1

データベースで、テーブルcore_config_dataを検索して を検索するとvalue like 'http%'、すべての URL が構成されていることがわかります。それらがスラッシュで終わっていることを確認してください。

于 2013-10-28T07:35:16.823 に答える
0

このエラーがNGINXまたはデータベースの構成ミスに起因するものかどうかは正確にはわかりません。

したがって、最初にデータベースを確認してください ( 162.209.98.218index.php での検索と同様)。何か見つかったら修正します (スラッシュを追加)。それ以外の場合は、NGINX 構成ファイルを確認してください。したがって、このようになるはずです。

    server {
      root     /home/magento/web/;
      index    index.php;
Listen 162.234.98.222:80; 
#server_name    ;
      location / {
        index index.html index.php;
        try_files $uri $uri/ @handler;
        expires 30d;
      }
      location ~ ^/(app|includes|lib|media/downloadable|pkginfo|report/config.xml|var)/ { internal; }
      location /var/export/ { internal; }
      location /. { return 404; }
      location @handler { rewrite / /index.php; }
      location ~* .php/ { rewrite ^(.*.php)/ $1 last; }
      location ~* .php$ {
        if (!-e $request_filename) { rewrite / /index.php last; }
        expires off;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param MAGE_RUN_CODE default;
        fastcgi_param MAGE_RUN_TYPE store;
        include fastcgi_params;
      }
    }
于 2013-10-28T10:18:46.347 に答える