Giter Club home page Giter Club logo

Comments (10)

EAnushan avatar EAnushan commented on May 10, 2024

I just ran into this issue as well. I copied a default-ssl.conf file into sites-enabled for an image that uses this one as it's base. Was wondering for a while why I was getting SSL handshake errors when trying to access the site.

from php.

EAnushan avatar EAnushan commented on May 10, 2024

Why aren't we using /usr/sbin/apache2ctl to start apache rather than /usr/sbin/apache2? The former sets up environment variables and creates log directories that are missing and a whole slew of things that Apache may need.

from php.

thaJeztah avatar thaJeztah commented on May 10, 2024

creates log directories that are missing and a whole slew of things that Apache may need.

Setting up the log directories isn't needed; logs are sent to STDOUT (see apache2.conf#L51) so that they are handled by the docker daemon

from php.

JensErat avatar JensErat commented on May 10, 2024

conf-enabled contains some vhost-log-configuration which should be disabled for this reason (see my original post). It is also referenced by the included default vhost configuration, so this is to be removed, too.

from php.

yosifkit avatar yosifkit commented on May 10, 2024

@JensErat, you are correct. We should fix the image to have those includes (and wipe out the contents of those directories). Care to make a PR 🙏?

from php.

JensErat avatar JensErat commented on May 10, 2024

The patch removes the symlinks for the enabled configuration, but leaves the original files in place (similar how we keep the original Apache configuration as apache2.conf.dist). There are incompatibilities in them, but also in the dist configuration, who ever enables them should know what he's doing anyway. But most of the file's contents is commented out anyway.

The alternative would be to also wipe out the disabled configuration, but I don't see this would do any harm.

Sorry for the two force pushes polluting the issue report, I failed at adding the latest change in the --amend commit before pushing it...

from php.

sskorc avatar sskorc commented on May 10, 2024

@JensErat: could you please make a PR with your change 🙏?

from php.

JensErat avatar JensErat commented on May 10, 2024

Sure, see #78.

from php.

sskorc avatar sskorc commented on May 10, 2024

Thanks a lot @JensErat. @yosifkit, the PR is there :)

from php.

jaredm4 avatar jaredm4 commented on May 10, 2024

Close this issue @JensErat ?

from php.

Related Issues (20)

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.