Magento 2 Byte Api Fix
An extension to fix the use of the Magento2 API's under Byte hosting (https://www.byte.nl/kennisbank/item/php_cgi_modus)., (*1)
Motivation
On of our webshops is hosted at Byte (https://byte.nl). Byte uses PHP under CGI mode.
Authentication (Basic, Digest etc.) will not work out of the box and we wanted that to work without hacks., (*2)
Technical feature
This extension uses a plugin (http://devdocs.magento.com/guides/v2.0/extension-dev-guide/plugins.html)
to access the REDIRECT_* variables from the environment variables as header variables., (*3)
Installation
composer require activeants/magento2-byteapifix
php bin/magento module:enable ActiveAnts_ByteApiFix
php bin/magento setup:upgrade
Modify the following rule in the .htaccess file:, (*4)
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
to, (*5)
RewriteRule .* - [E=BYTE_AUTHORIZATION:%{HTTP:Authorization}]
Issues
Feel free to report any issues for this project using the integrated Bitbucket issue tracker, we will try to get back to issues as fast as possible., (*6)
License
The Byte Api Fix is free software, and is released under the terms of the OSL 3.0 license. See LICENSE.md for more information., (*7)
Credits
Active Ants provides e-commerce efulfilment services for webshops. We store products, pick, pack and ship them. But we do much more. With unique efulfilment solutions we make our clients, the webshops, more successful., (*8)
~ The Active Ants software development team., (*9)