smokenik commented on issue #1765: URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1765#issuecomment-1494204572
same problem... I am going crazy same site: 1)nginx proxy manager (http) -> OLS (http)+ modpagespeed ALL FINE! combine and resize .js .css, transform in webp ok trim spaces, lower html, delete comments 2)nginx proxy manager (https) -> OLS (http)+ modpagespeed NOT combine NOT resize images ok trim spaces, lower html, delete comments Assuming xx.yyy.net the domain ... how to set modpagespeed directives to fix 2) ? http headers list: Host: xx.yyyy.net X-Forwarded-Schem: https X-ForProto -Proto: https X-Forwarded-For: 192.168.20.195 X-Real-IP: 192.168.20.195 Connection: close sec-ch-ua: "Brave";v="111", "Not(A:Brand";v="8", "Chromium";v="111" sec-ch-ua-mobile: ?0 sec-ch-ua-platform: "Windows" upgrade-insecure-requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8 sec-gpc: 1 Accept-Language: it-IT,it;q=0.8 sec-fetch-site: none sec-fetch-mode: navigate sec-fetch-user: ?1 sec-fetch-dest: document Accept-Encoding: gzip, deflate, br Il giorno sab 1 apr 2023 alle ore 13:55 Lofesa ***@***.***> ha scritto: > Have you enabled the rewrite domain? > Because it seems your proxy send the request to the 80 port, some like > > user ->https-> nginx -> http -> backend-server > > So maybe you need 2 things: > 1.- A header X-Forwarded-Proto to instruct the backend server the client > is using the https protocol > 2.- A pagespeed directive to rewrite the domain mydomain.com:80 to > mydomain.com in the response html code > > In other hand, maybe you need to set the X-Forwarded-for to pass the > client ip to the backend, because if you have any security measure like > fail2-ban, maybe you are banning the proxy ip and not the user ip. > > — > Reply to this email directly, view it on GitHub > <https://github.com/apache/incubator-pagespeed-ngx/issues/1765#issuecomment-1492948581>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ARZTEJS6ZCSL6S3G6SNCNTDW7AJRJANCNFSM6AAAAAAWKO4TIA> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> > -- -- 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: dev-unsubscr...@pagespeed.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org