mavitec Posted May 27, 2016 Share Posted May 27, 2016 Hi, We have created an EC2 instance with prestashop bitnami and we are having trouble activating the webservice. when we put in browser key@site_url/api, authentication screen appears asking for user and password. We put the key as a user and password leave empty but keeps asking for authentication. We've been doing a lot of testing but cant found the problem. ¿Do we have to configure anything on the server? Any help would be appreciated I forgot, we have 1.6.1.4 version Link to comment Share on other sites More sharing options...
mavitec Posted May 30, 2016 Author Share Posted May 30, 2016 it seems that we have detected the problem. $_SERVER['PHP_AUTH_USER'] don't works with php-fpm. To solve, edit .htaccess and add just after RewriteEngine on the code: RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1] Link to comment Share on other sites More sharing options...
Fabricioc Posted August 27, 2021 Share Posted August 27, 2021 On 5/30/2016 at 11:35 AM, mavitec said: it seems that we have detected the problem. $_SERVER['PHP_AUTH_USER'] don't works with php-fpm. To solve, edit .htaccess and add just after RewriteEngine on the code: RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1] Mavitec, I'm here using that shot on spot reply. thank you since 2021! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now