管理パネルへのログインで問題が発生しています。
エラー : 162.209.98.218index.php でサーバーが見つかりません (ip と index.php の間に / がありません)
nginxサーバーまたはデータベースで変更するにはどうすればよいですか?
管理パネルへのログインで問題が発生しています。
エラー : 162.209.98.218index.php でサーバーが見つかりません (ip と index.php の間に / がありません)
nginxサーバーまたはデータベースで変更するにはどうすればよいですか?
データベースで、テーブルcore_config_data
を検索して を検索するとvalue like 'http%'
、すべての URL が構成されていることがわかります。それらがスラッシュで終わっていることを確認してください。
このエラーが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;
}
}