question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cleaner httpd conf extension proposal

See original GitHub issue

IN ORDER TO ensure my PHP application will pick up changes in the PHP buildpack’s default configuration when new versions are released, AS A PHP buildpack user I WANT a way to extend the httpd conf without overwriting buildpack-provided conf files.

This is in reference to the docs here, which recommend copying the httpd.conf (or another file) from the buildpack source, modifying it to add inclusion of special configuration, and adding it to the .bp-config directory. When users do that, it means they have to start watching the file upstream that they overrode for changes, or risk breakage in their app.

Adding a single IncludeOptional line (with an expected directory name) to httpd.conf would make it trivial to extend the httpd conf without overwriting buildpack-provided files. Here’s an example where I did that: https://github.com/18F/cf-ex-drupal8/pull/25

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dmikusacommented, Jun 14, 2019

👍 This would be a nice convenience feature and it’s basically a one-line change to the default httpd.conf file in the buildpack (to add this.

I have thought about doing this in the past and just never got around to it. Mostly because the config that’s in the buildpack rarely changes. Anyway, +1.

0reactions
ForestEckhardtcommented, Sep 10, 2019

For php-web-cnb it is now possible to include custom http snippets. This should be easier than the current behavior in the php-buildpack because you no longer have to override the complete file. This approach is also inline with how we override php.ini and php.fpm.

Read more comments on GitHub >

github_iconTop Results From Across the Web

remove .php and .html file extensions using mod_rewrite in ...
rewrite_module is enabled ( sudo apachectl -M ). In /etc/apache2/apache2.conf (the Ubuntu version of httpd.conf) I have the following code block: <Directory ...
Read more >
Cleanup httpd configuration files at removal nethserver-module
After some experiments / research it looks like nethserver-modules leave their (httpd, apache) configurations files behind after removal.
Read more >
How to Fix Issues with Httpd.conf (Free Download) - EXE Files
httpd.conf errors are related to problems that occur at WampServer runtime. Generally, CONF errors are caused by missing or corrupt files.
Read more >
Enable clean URLs - Drupal
Server configuration for Clean URLs on a dedicated server, with httpd.conf ... Enabling clean URLs on a dedicated server involves these steps:.
Read more >
FACT SHEET: President Biden Announces New Initiatives at ...
Today at the 27th U.N. Climate Conference (COP27), President Biden ... is acting to lead a clean energy future that leverages market forces, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found