Nginx配置 magento2让任意目录可执行PHP伪静态规则

作者:admi... 点击数: 0 收藏到会员中心
最后编辑时间: 2020-10-27 16:28
location /themesetup {
    root $MAGE_ROOT;
    location ~ ^/themesetup/index.php {

        ### This fixes the problem:
        fastcgi_split_path_info ^(.+?\.php)(/.*)$;
        ################################

        fastcgi_pass   fastcgi_backend;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }

    location ~ ^/themesetup/(?!pub/). {
        deny all;
    }

    location ~ ^/themesetup/pub/ {
        add_header X-Frame-Options "SAMEORIGIN";
    }}


请登录已经激活账号继续浏此文章所有内容!
会员中心

已经有帐号啦 !赶紧同小伙伴们愉快地玩耍吧

立即登录

还没有账号? 马上注册一个新帐户

注册账号
热点标签: magento教程 magento2教程
内容说明:
如您需要转载本文请保留以下信息是对作者发文的支持与尊重:

Nginx配置 magento2让任意目录可执行PHP伪静态规则 来源于 https://www.magentola.com/news-read-197.html
上一篇:M2.x后台Bulk Actions log/quote/ ***have been scheduled for update提示删除
下一篇:M2后台设置发送Newsletter到中途却无法执行的奇葩问题处理方法
相关内容
产品推荐