分类
Web编程

ubuntu启用apache的mod_headers和mod_expires

ubuntu部署好wordpress后,发现插件wp_super_cache里面有几个警告,请启用mod_expires和mod_headers.

可以按照以下命令,启用apache的缓存

[email protected]:~# a2enmod headers
Enabling module headers.
To activate the new configuration, you need to run:
  service apache2 restart
[email protected]:~# a2enmod expires
Enabling module expires.
To activate the new configuration, you need to run:
  service apache2 restart
[email protected]:~# service apache2 restart
 * Restarting web server apache2                                                 ... waiting                                                             [ OK ]

发表评论

电子邮件地址不会被公开。 必填项已用*标注

Time limit is exhausted. Please reload CAPTCHA.