【问题标题】:/api/rest returns not found in magento rest services在 magento 休息服务中找不到 /api/rest 返回
【发布时间】:2013-09-28 08:59:56
【问题描述】:

我需要知道如何允许来宾用户在 magento 中使用 rest 方法获取一些数据。我根据 magento commerce 网站创建并关注了所有角色和用户的创建。 任何人都可以通过清楚地指出步骤来帮助我,以便使用 myhost/api/rest/products 从 magento 网站向客人获取产品详细信息,非常感谢您提前!!!

【问题讨论】:

    标签: magento rest


    【解决方案1】:

    如果您使用 ubuntu,您必须执行以下操作,

    1.转到etc-apache2-apache2.conf并启用write mod到文件并进行备份。然后编辑原始文件如下

    <Directory /> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Allow from all </Directory>

    <Directory /var/www/html/>                                         
       Options Indexes FollowSymLinks Includes ExecCGI
       AllowOverride All
        Allow from All
     </Directory>
    

    2.使用终端启用模式重写

     sudo a2enmod rewrite
    

    然后重新启动 apache 并尝试产品 url,如果您使用 windows google 如何在 windows 中执行相同操作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-11-30
      • 2015-05-02
      • 1970-01-01
      • 2014-08-10
      • 1970-01-01
      • 2019-03-26
      • 2018-06-19
      相关资源
      最近更新 更多