How can I enable an Apache module on ddev?

好久不见. 提交于 2019-12-11 06:37:28

问题


I'm using webserver-type: apache-fpm with ddev and need to enable a module. How do I do that?


回答1:


You can use a2enmod in the web container and then apachectl graceful to restart apache to pick up the changes.

So ddev ssh and then a2enmod headers && apache2ctl graceful (if you were enabling the "headers" module)

Using ddev exec: ddev exec "a2enmod headers && apache2ctl graceful"

Using a post-start hook:

hooks:
  post-start:
  - exec: a2enmod headers && apache2ctl graceful


来源:https://stackoverflow.com/questions/52949945/how-can-i-enable-an-apache-module-on-ddev

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!