GithubHelp home page GithubHelp logo

wodby / apache Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 7.0 174 KB

Apache HTTP server docker container image

Home Page: https://wodby.com/stacks

License: MIT License

Makefile 27.75% Shell 48.16% Dockerfile 24.09%
alpine apache2 docker

apache's People

Contributors

csandanov avatar wodbot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

apache's Issues

Customization of the AllowOverride directive

Hi everybody,

I am facing an issue when trying to use an .htaccess file using the HTML preset. After checking, I have noticed HTML preset has AllowOverride directive set to None, whereas PHP preset has it set to All.

I am going to submit a Pull Request to include an APACHE_ALLOW_OVERRIDE_ENABLED environment variable.

Regards,
David.

Add Modules

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.

Could not open configuration file /usr/local/apache2/conf/preset.conf: No such file or directory

Below is my apache server configin the docker-compose file for

apache:
image: wodby/apache:2.4-4.2.6
container_name: "${PROJECT_NAME}_apache"
depends_on:
- web
environment:
APACHE_LOG_LEVEL: debug
APACHE_BACKEND_HOST: web
APACHE_VHOST_PRESET: web
APACHE_SERVER_ROOT: /var/www/html/web

web is my PHP docker instance. I'm basically following dupal4docker example and i run into the above error in the subject line as well as setrlimit(RLIMIT_CORE): operation not permitted. I don't have this issue with nginx server. Help

Would like to override HTML_DIR

I would like to override HTML_DIR in my own instance of docker4drupal docker-compose.yml so that I can use my preferred directory structure without creating a derivative image

I am able to add the following, but because the directory does not exist the container won't start. I think this is the correct repository issue queue to add this issue to because HTML_DIR is defined in wodby/apache.

apache:
  image: wodby/drupal-apache:2.4-1.0.2
  depends_on:
    - php
  environment:
    APACHE_LOG_LEVEL: debug
    APACHE_BACKEND_HOST: php
    APACHE_SERVER_ROOT: "/var/www/not-html"
    HTML_DIR: "/var/www/not-html"
apache_1      | chown: /var/www/not-html: No such file or directory
apache_1      | chown: /var/www/not-html: No such file or directory
name_apache_1 exited with code 1

Would it be possible to add mkdir -p ${HTML_DIR} into Dockerfile?

Add support for .well-known services

The vhost template contains two sections that prevent .well-known services from working:

    <FilesMatch "^\.">
        Order allow,deny
        Deny from all
    </FilesMatch>

    <DirectoryMatch "^\.|\/\.">
        Order allow,deny
        Deny from all
    </DirectoryMatch>

Any chance of getting this enhanced so that those increasingly popular service could be supported too?

Add pagespeed_module

Hey there, hope you're all doing well, wanted to ask if you guys could add pagespeed_module to the list of enabled modules since it is a somewhat common module to be used

About adding extra modules

I've been trying out Docker 4 Drupal as a local environment and it seems to work really well - thanks!

However, I've come across a need to install extra modules. For instance one in particular is imagemagick but I may need others and wondered if the steps in this thread might be helpful. Or is there a better way of doing this?

Are there any plans to have this as an extra config for the environment to be pulled in with the docker compose file?

Error loading shared library /usr/local/apache2/modules/mod_authn_default.so

Running command httpd-foreground
httpd: Syntax error on line 59 of /usr/local/apache2/conf/httpd.conf: Cannot load modules/mod_authn_default.so into server: Error loading shared library /usr/local/apache2/modules/mod_authn_default.so: No such file or directory

any idea why i'm getting this error while running the apache:2.4? it does seem that this module is deprecated in apache 2.4 vs 2.2 but still being loaded?

more at https://httpd.apache.org/docs/2.4/upgrading.html

Fails when the volume is mounted readonly

I would like to mount my volume readonly but the container exits because it can't change ownership of the files.

Steps to reproduce:

$ docker run -v /home/user/www/:/var/www/html/:ro -p 8080:80 wodby/apache:2.4

Result:

chown: /var/www/html: Read-only file system

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.