Apache

Framework
Apache
Category
Servers
Publisher
Jetify
{
  "$schema":  "https://raw.githubusercontent.com/jetify-com/devbox/0.12.0/.schema/devbox.schema.json",
  "packages": ["apacheHttpd@2.4.58"],
  "shell": {
    "init_hook": [
      "echo 'Welcome to devbox!' > /dev/null"
    ],
    "scripts": {
      "start": "apachectl start -f $HTTPD_CONFDIR/httpd.conf -D FOREGROUND"
    }
  }
}

Apache

Apache can be automatically configured by Devbox via the built-in Apache Plugin. This plugin will activate automatically when you install Apache using devbox add apache.

Example Repo

Open In Devspace

Adding Apache to your Shell

Run devbox add apache, or add the following to your devbox.json

  "packages": [
    "apache@latest"
  ]

This will install the latest version of Apache. You can find other installable versions of Apache by running devbox search apache. You can also view the available versions on Nixhub

Apache Plugin Details

The Apache plugin will automatically create the following configuration when you install Apache with devbox add.

Services

  • apache

Use devbox services start|stop apache to start and stop httpd in the background.

Helper Files

The following helper files will be created in your project directory:

  • {PROJECT_DIR}/devbox.d/apacheHttpd/httpd.conf
  • {PROJECT_DIR}/devbox.d/web/index.html

Note that by default, Apache is configured with ./devbox.d/web as the DocumentRoot. To change this, you should copy and modify the default ./devbox.d/apacheHttpd/httpd.conf.

Environment Variables

HTTPD_ACCESS_LOG_FILE={PROJECT_DIR}/.devbox/virtenv/apacheHttpd/access.log
HTTPD_ERROR_LOG_FILE={PROJECT_DIR}/.devbox/virtenv/apacheHttpd/error.log
HTTPD_PORT=8080
HTTPD_DEVBOX_CONFIG_DIR={PROJECT_DIR}
HTTPD_CONFDIR={PROJECT_DIR}/devbox.d/apacheHttpd

Notes

We recommend copying your httpd.conf file to a new directory and updating HTTPD_CONFDIR if you decide to modify it.

README.md

Level up your dev environment

No need to switch your style. Devbox works with any coding language, so you can get results as you write.
PREPARE FOR LAUNCH

Plans for teams of any size

Jetify Cloud offers pricing plans for Solo Developers to Large Enterprises, and everything in between. All plans include free credits, and you are only billed for what you use. Need something custom? Contact our team and we can help.
YOUR INPUT COUNTS

Join the community

Discuss ideas, uses and builds with the Jetify team and others.