Centos 安装配置 Apache mod_ssl 模块

Centos 安装配置 Apache mod_ssl 模块

使用命令行安装 Apache mod_ssl 模块: # yum install mod_ssl Apache mod_ssl 模块配置: 编辑配置文件:/etc/httpd/conf.d/ssl.conf 给虚拟主机添加 :443 端口

Apache 启用 gzip 压缩来提高网页加载速度

Apache 启用 gzip 压缩来提高网页加载速度

以下例子是在 Centos 下开启 gzip 压缩,用于提高网页加载速度。编辑 Apache 配置文件,一般在 /etc/httpd/conf.d/ 目录里的 xxxx.conf文件,加入以下语句: <Location /> A