magento 1.9 nginx 404

原来的nginx 配置 lnmp 环境默认的

  location ~ [^/]\.php(/|$)
        {
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            try_files $uri =404;
            fastcgi_pass  unix:/tmp/php-cgi.sock;
            fastcgi_index index.php;
            include fastcgi.conf;
        }

  修改为

location ~ \.php$
        {
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            try_files $uri =404;
            fastcgi_pass  unix:/tmp/php-cgi.sock;
            fastcgi_index index.php;
            include fastcgi.conf;
        }
UPDATE `customer_group` SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN';

  

  

想必你们知道是什么原因了吧

posted on 2019-04-20 12:15  pa200318  阅读(194)  评论(0)    收藏  举报

导航