httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] Building Apache, does --prefix gets hardcoded ?
Date Tue, 10 Jun 2008 17:14:17 GMT
On Tue, Jun 10, 2008 at 12:38 PM, Jorge Medina <> wrote:
> I am trying to create a tar ball with Apache, Tomcat and my application to
> be deployed later on a server with the same kernel as the building machine.
> When building Apache HTTP server, there is an option "—prefix" passed to
> "configure" script that indicates where will the result of the build end up.
> Does it gets hardcoded into the code? Can I move later the build server to
> another directory and just adjust configuration files?
> For example, if I build with –prefix=/myproject/build/http, would it be
> possible later on to move the location of the HTTP server to another
> directory? (E.g. /opt/http)
> In other words, do I need to distribute HTTP source code and build it when I
> install my application, or can I build it ahead of time and just configure
> it at installation time?

The prefix is hardcoded but can be overridden at runtime using a
combination of command line options (-f in particular) and
configuration file directives. See also the binbuild script in the
build directory of the source tree for other ideas on how to handle
this issue.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message