{"action":"created","issue":{"url":"https://api.github.com/repos/pagespeed/mod_pagespeed/issues/1531","repository_url":"https://api.github.com/repos/pagespeed/mod_pagespeed","labels_url":"https://api.github.com/repos/pagespeed/mod_pagespeed/issues/1531/labels{/name}","comments_url":"https://api.github.com/repos/pagespeed/mod_pagespeed/issues/1531/comments","events_url":"https://api.github.com/repos/pagespeed/mod_pagespeed/issues/1531/events","html_url":"https://github.com/pagespeed/mod_pagespeed/issues/1531","id":223181836,"number":1531,"title":"Error 403 in images","user":{"login":"jd250","id":9294955,"avatar_url":"https://avatars1.githubusercontent.com/u/9294955?v=3","gravatar_id":"","url":"https://api.github.com/users/jd250","html_url":"https://github.com/jd250","followers_url":"https://api.github.com/users/jd250/followers","following_url":"https://api.github.com/users/jd250/following{/other_user}","gists_url":"https://api.github.com/users/jd250/gists{/gist_id}","starred_url":"https://api.github.com/users/jd250/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jd250/subscriptions","organizations_url":"https://api.github.com/users/jd250/orgs","repos_url":"https://api.github.com/users/jd250/repos","events_url":"https://api.github.com/users/jd250/events{/privacy}","received_events_url":"https://api.github.com/users/jd250/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-04-20T19:59:26Z","updated_at":"2017-07-01T14:12:16Z","closed_at":null,"body":"Hello. I can't show some images in my web. When you try to see some images it shows 403 Forbidden\r\n\r\n\r\n\r\nThanks!!"},"comment":{"url":"https://api.github.com/repos/pagespeed/mod_pagespeed/issues/comments/312434291","html_url":"https://github.com/pagespeed/mod_pagespeed/issues/1531#issuecomment-312434291","issue_url":"https://api.github.com/repos/pagespeed/mod_pagespeed/issues/1531","id":312434291,"user":{"login":"array064","id":6907983,"avatar_url":"https://avatars2.githubusercontent.com/u/6907983?v=3","gravatar_id":"","url":"https://api.github.com/users/array064","html_url":"https://github.com/array064","followers_url":"https://api.github.com/users/array064/followers","following_url":"https://api.github.com/users/array064/following{/other_user}","gists_url":"https://api.github.com/users/array064/gists{/gist_id}","starred_url":"https://api.github.com/users/array064/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/array064/subscriptions","organizations_url":"https://api.github.com/users/array064/orgs","repos_url":"https://api.github.com/users/array064/repos","events_url":"https://api.github.com/users/array064/events{/privacy}","received_events_url":"https://api.github.com/users/array064/received_events","type":"User","site_admin":false},"created_at":"2017-07-01T14:12:16Z","updated_at":"2017-07-01T14:12:16Z","body":"@jd250 : Hi,\r\n\r\nIs your folder, `/img/cms/`, a folder on a website that uses Prestashop that contains this:\r\n\r\n```\r\n<IfModule mod_php5.c>\r\n\tphp_flag engine off\r\n</IfModule>\r\ndeny from all\r\n<Files ~ \"(?i)^.*\\.(jpg|jpeg|gif|png|bmp|tiff|svg|pdf|mov|mpeg|mp4|avi|mpg|wma|flv|webm)$\">\r\n\torder deny,allow\r\n\tallow from all\r\n</Files>\r\n```\r\n\r\n? \r\n\r\nIf yes, then:\r\n\r\n1. I don't recommend you to delete the .htaccess file on that folder. The .htaccess file is the default file from Prestashop to keep that folder secure;\r\n\r\n2. To keep the Pagespeed running on that folder and that folder remains secure, I recommend you to replace the contents of the .htaccess file with the following:\r\n\r\n```\r\n<IfModule mod_php5.c>\r\n        php_flag engine off\r\n</IfModule>\r\n\r\nRewriteCond %{REQUEST_FILENAME} !\\.(jpg|jpeg|gif|png|bmp|tiff|svg|pdf|mov|mpeg|mp4|avi|mpg|wma|flv|webm|webp)$ [NC,OR]\r\nRewriteCond %{REQUEST_FILENAME} -d\r\nRewriteRule .* / [F]\r\n```\r\n_(Note: for Apache 2.4)_\r\n\r\nI have tried it, and the result: Pagespeed keeps running on that folder (no error 403) and the folder remains secure.\r\n\r\nSo, in my opinion, this problem is not because Pagespeed, has been resolved, and can be closed.\r\n\r\nIMHO, CMIIW."}}
{"actor":{"display_login":"array064"}}