Lofesa commented on issue #1738:
URL:
https://github.com/apache/incubator-pagespeed-ngx/issues/1738#issuecomment-893283879
```
location ~ \.(sh|hta|htp|sql|git|env) {
deny all;
}
```
/images/cache/uploads/263x283/user_files/461/262x262xbludo-bormioli-rocco-toledo-2.jpg.pagespeed.ic.sheU75_Rnh.jpg
In the url there is a ".sh" string, maybe this is the origin for the 403?
Can you try to comment the` include includes/deny-files.conf;` and try if
the url works?
I don´t know why the redirection is here, but for sure is a nginx config
issue not a pagespeed one.
The url param must be as is it: PageSpeedFilters=+debug, if in lower case
it don´t work
Suggestions:
Change ~ \.(sh|hta|htp|sql|git|env) to ~ \.(sh|hta|htp|sql|git|env)$ The $
sing denotes the end of string.
Change try_files $uri $uri/ /index.php?$args; to try_files $uri $uri/
/index.php?$is_args$args;
Change all return 301 https://domain.com$uri; to return 301
https://domain.com$request_uri;
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]