guillaumeb Posted August 20, 2013 Share Posted August 20, 2013 (edited) Hello, I have a problem with apache configuration. I want to let my users access to product images with Prestashop webservices. When I access to my images from my browser, there are no problems : I try for exemple this url : http://myprestashop/api/images/products/8/27. Then my browser prompt me to enter the API key, and the image is displayed. What I want now is to enter this url : http://myproxy/api/images/products/8/27. Then the proxy transfers the requests to myprestashop with the API key. Finally, the proxy serves the image to the browser. So the browser never asked for the API Key, and the images can be cached by the proxy. This is my Apache configuration on the proxy : <Location /api/images/> RequestHeader set Authorization "Basic XXXXXXXXXXXXXXX" ProxyPass http://mypretashop/api/images/ ProxyPassReverse http://mypretashop/ </Location> With this, my requests are correctly transfered to mypretashop, but each of them returns a 302 redirection to /?url=images%2Fproducts%2F8%2F27 I think Prestashop doesn't find the API Key because I have the same behavior when I want to access to the images directly from myprestashop without enterring a key. But in the myprestashop logs, the key is present. Does someone can help me to configure apache as a reverse proxy to prestashop webservices ? Thank you Edited August 20, 2013 by guillaumeb (see edit history) Link to comment Share on other sites More sharing options...
peorthyr Posted February 11, 2014 Share Posted February 11, 2014 did you find a way to manage the 302 status? 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