Is it possible to use AWS Beanstalk's .ebextensions config to install mod_pagespeed Apache module?

前端 未结 4 540
执念已碎
执念已碎 2020-12-29 12:43

I\'m using AWS Beanstalk for my Django/Python application, and I would like to use Google\'s mod_pagespeed module. Is it possible to install and run mod_pagespeed using the

4条回答
  •  孤独总比滥情好
    2020-12-29 13:33

    Thanks guys! I got it working great following your answer @man2xxl.

    You don't have to mess with the /pagespeed/extensions directory though, the beanstalk .ebextensions config can simply be:

    packages:
      yum:
        at: []
    
    10_setup_apache_for_mod_pagespeed:
      command: "cp enable_mod_pagespeed.conf /etc/httpd/conf.d"
    20_install_mod_pagespeed:
      command: rpm -U -iv --replacepkgs mod-pagespeed-*.rpm
    30_clear_mod_pagespeed_cache:
      command: touch /var/cache/mod_pagespeed/cache.flush
    

提交回复
热议问题