Jump to content

Subdomain point to img folder gets error 403 - Prestashop 1. 7.8.5


Mathew Nwaneri

Recommended Posts

Good day colleagues, 


I kindly ask if someone can give me a hand to understand how to solve the case below:


I tried to use a CDN subdomain to serve images on my prestashop site.
I have configured the subdomain on cloudfront with my source domain pointing to the path where I have my image content: /public_html/img.
I also tried the cloudfront configuration using my subdomain with no additional path.
I also created a cname with the cloudfront distribution domain name on both my domain and my subdomain.
Unfortunately when I put my subdomain in the prestashop mediaserver setup, my site becomes unusable, both theme configuration and images disappear.


I have also tried creating the subdomain without cloudfront pointing directly to the images path and still get the same result, both configurations give me a 403 error.
I use cloudflare and have created an A record for it with the grey cloud.
Reading on the forums, I understood that it is better to contact the hosting for a possible solution, which I did but they could not find the source of the error.


I have other subdomains that work perfectly as desired except this one which points to the img folder.
What I need to resolve is the 403 error I get using the subdomain.


Thanks to anyone who can give an idea on how to solve it.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...