我试图让centOS pagespeed apache2模块运行SSL,但它似乎并没有工作

我已经在centOS上安装了httpd的pagespeed模块,最后我把它和http一起工作,但是我仍然没有设法指挥ssl,我添加了ssl cert目录path和.pempath,我可以说已经写好了一切。 我包含ModPagespeed 3次,在pagespeed.conf文件中包含2次,在顶部有一次,还有一次在下一个。 然后在vhost.conf的顶部。

真正的设置是在vhost.conf文件中设置的,这是错误的?

我有一个服务器托pipe几个网站,HTTP网站的工作,但不是HTTPS的。

看一看:

ModPagespeed on # Attempt to load mod_version if it wasn't loaded or compiled in (eg on Debian) <IfModule !mod_version.c> LoadModule version_module /usr/lib64/httpd/modules/mod_version.so </IfModule> <IfVersion < 2.4> LoadModule pagespeed_module /usr/lib64/httpd/modules/mod_pagespeed.so </IfVersion> <IfVersion >= 2.4.2> # As default pagespeed.conf configuration uses old-style ACLs using # 'allow' and 'deny', we load mod_access_compat in Apache 2.4. If that's a # problem, the blocks using that can be converted to the newer 'Require' # syntax. <IfModule !access_compat_module> LoadModule access_compat_module /usr/lib64/httpd/modules/mod_access_compat.$ </IfModule> LoadModule pagespeed_module /usr/lib64/httpd/modules/mod_pagespeed_ap24.so </IfVersion> # Only attempt to load mod_deflate if it hasn't been loaded already. <IfModule !mod_deflate.c> LoadModule deflate_module /usr/lib64/httpd/modules/mod_deflate.so </IfModule> <IfModule pagespeed_module> # Turn on mod_pagespeed. To completely disable mod_pagespeed, you # can set this to "off". ModPagespeed on ModPagespeed on ModPagespeedInheritVHostConfig on ModPagespeedFileCachePath "/var/cache/mod_pagespeed/" # Image Filters ModPagespeedEnableFilters rewrite_images,insert_image_dimensions,inline_images,$ # CSS Filters ModPagespeedEnableFilters rewrite_css,move_css_above_scripts,combine_css,inline$ # JS Filters ModPagespeedEnableFilters rewrite_javascript,canonicalize_javascript_libraries,$ # Misc Filters ModPagespeedEnableFilters collapse_whitespace,trim_urls,remove_quotes,insert_dn$ # Direct Apache to send all HTML output to the mod_pagespeed # output handler. AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html ModPagespeedPreserveUrlRelativity on ModPagespeedFetchHttps enable ModPagespeedSslCertDirectory /etc/pki/tls/certs ModPagespeedSslCertFile /etc/pki/tls/cert.pem <VirtualHost *:80> ServerName default:80 ServerAdmin [email protected] DocumentRoot /var/www/html </VirtualHost> ModPagespeedMapOriginDomain "http://myleisure.com.au" "https://www.myleisure.co$ <VirtualHost *:80> ServerName myleisure.com.au ServerAlias myleisure.com.au DocumentRoot /var/www/html/myleisure.com.au Redirect permanent / https