Adding Apache to your Shell
Rundevbox add apache
, or add the following to your devbox.json
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 withdevbox add
.
Services
- apache
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
./devbox.d/web
as the DocumentRoot. To change
this, you should copy and modify the default ./devbox.d/apacheHttpd/httpd.conf
.
Environment Variables
Notes
We recommend copying yourhttpd.conf
file to a new directory and updating HTTPD_CONFDIR if you
decide to modify it.
Disabling the Apache Plugin
You can disable the Apache plugin by runningdevbox add apache --disable-plugin
, or by setting the
disable_plugin
field in your devbox.json
: