В httpd.conf:
Код: Выделить всё
CacheRoot "/var/cache/httpd/apache-web-cache"
CacheEnable disk "/"
CacheDirLevels 2
CacheDirLength 1
CacheDetailHeader on
CacheHeader on
CacheQuickHandler off
ExpiresActive On
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType font/woff "access plus 1 month"
ExpiresByType font/woff2 "access plus 1 month"
ExpiresByType font/ttf "access plus 1 month"
Код: Выделить всё
ServerName myexample.com
ProxyRequests off
SSLProxyEngine on
ProxyPreserveHost On
AllowEncodedSlashes NoDecode
SSLEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
SSLCertificateFile /etc/letsencrypt/live/myexample.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/myexample.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/myexample.com/chain.pem
ProxyPass / http://mysvrip:port/
ProxyPassReverse / http://mysvrip:port/
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"
ExpiresActive On
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType font/woff "access plus 1 month"
ExpiresByType font/woff2 "access plus 1 month"
ExpiresByType font/ttf "access plus 1 month"
Header set Cache-Control "public, max-age=2592000, must-revalidate, no-transform"
ExpiresActive On
ExpiresDefault "access plus 1 month"
введите здесь описание изображения
Подробнее здесь: https://stackoverflow.com/questions/786 ... -com-issue