我需要知道如何允许访客用户使用magento中的rest方法获取一些数据。我已经创建并遵循所有的角色和用户创建根据magento商务网站。谁能帮我清楚地指出从magento网站到使用myhost/api/rest/products的访客获取产品详细信息的步骤谢谢!
发布于 2014-08-30 12:59:32
如果你使用ubuntu,你必须执行以下操作:
1.转到etc-apache2-apache2.conf并启用write mod to the file,并使用backup.Then编辑原始文件,如下所示
<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中做同样的事情。
https://stackoverflow.com/questions/18959684
复制相似问题