736Online Posted July 11, 2015 Share Posted July 11, 2015 If I turn off caching for jpeg/jpg with url rewrite everything shows normally and functions fine If I turn on caching for jpeg.jpg with url rewrite everything shows except my product images, AND image urls are not changing so it doesn't appear to be a path issue. I've tried regenerating images, I've deleted htaccess with url rewriting off, went to front page to generate a new one and turned url rewrite back on and still nothing. I'm using a custom theme, but I have verified the issue with the default theme (the issue was discovered before the custom theme was activated). I'm using the latest version of prestashop on a Dreamhost VPS with Nginx | PHP 5.5 FastCGI (also had the problem with regular CGI), I've been able to get pretty much everything else functional following instructions and ideas from post here on the forum For rewriting I'm using the code from the link below: https://www.prestashop.com/forums/topic/351024-solved-nginx-problem-admin-page-not-accessible/ For caching I'm using: location ~* \.(eot|gif|jpg|jpe?g|ico|otf|pdf|png|svg|swf|ttf|woff)$ { expires 1M; add_header Cache-Control public; allow all; } Link to comment Share on other sites More sharing options...
736Online Posted July 12, 2015 Author Share Posted July 12, 2015 It looks like I solved the issue. The problem appears to be because I had the url rewrite inside of a location bracket. I removed it from the bracket and left the cache settings inside the other and it worked fine. 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