Skip to content

PR #411 Broke custom apache configs #428

Closed
@higginsd-la

Description

@higginsd-la

In PR #411, the following was introduced:

find /etc/apache2 -name '*.conf' -exec sed -ri 's/([[:space:]]*LogFormat[[:space:]]+"[^"]*)%h([^"]*")/\1%a\2/g' '{}' +

The problem with this is that it overwrites the sites-enabled/000-default.conf symlink with a physical file.

This breaks any builds that place custom configs in sites-available and expect sites-enabled/000-default.conf to symlink properly. The same is true for mods-available and conf-available.

I have numerous images that place custom configs in the "available" directories, and then call a2enmod or a2enconf ... however, the a2enconf and a2enmod scripts will not overwrite a physical file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions