Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Modules #6

Closed
albertski opened this issue Feb 21, 2019 · 5 comments
Closed

Add Modules #6

albertski opened this issue Feb 21, 2019 · 5 comments

Comments

@albertski
Copy link

Is there a way to add more apache module? I need to add module_include to a project I am working on. Not sure what the best way to handle adding it.

csandanov added a commit that referenced this issue Feb 27, 2019
@csandanov
Copy link
Member

mod_include added in 4.0.4, sounds like a module that should be in the image by default. If you need a very specific module you should use your own httpd.conf (either mount or build your image on top).

@sylven
Copy link

sylven commented Jan 13, 2020

I'm using docker4drupal and I also needed to enable an apache module.
Excuse me if I shouldn't post this here but I've been browsing the issues from wodby/apache and wodby/docker4drupal and couldn't find anything to help me. I found something on the issues of wodby/docker4dwordpress and I think this might be useful to someone.

I needed to use ProxyPass and ProxyPassReverse, which needs both extensions 'mod_proxy' and 'mod_proxy_http'.
'mod_proxy_http' is not enabled, maybe because 'mod_proxy_http2' it is.

To enable 'mod_proxy_http' I had to add these lines to docker-compose.yml under apache container declaration:

environment:
  APACHE_INCLUDE_CONF: /usr/local/apache2/conf/custom-extra.conf
volumes: 
  - ./extra-apache2.conf:/usr/local/apache2/conf/custom-extra.conf

The content of 'extra-apache2.conf' has to be the virtual host from this template:
https://github.com/wodby/apache/blob/master/templates/vhost.conf.tmpl
And below that you can enable apache modules and add the ProxyPass rules you may need.

Not sure what is this {{ getenv "APACHE_DOCUMENT_ROOT" "/var/www/html" }} syntax but for some reason it wasn't picking it up, so I had to manually define the values instead of using dynamic conditionals.

@csandanov
Copy link
Member

proxy_module is enabled, see https://github.com/wodby/apache/blob/master/tests/basic/apache_modules, you can check it yourself by running httpd -M

@sylven
Copy link

sylven commented Jan 14, 2020

I know, but I also needed proxy_http_module, which was not enabled.

csandanov added a commit that referenced this issue Jan 15, 2020
@csandanov
Copy link
Member

The module has been added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants