Bug 60873 - Obsolete httpd-std.conf in binbuild.sh
Summary: Obsolete httpd-std.conf in binbuild.sh
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Build (show other bugs)
Version: 2.4.25
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Depends on:
Reported: 2017-03-16 08:47 UTC by mshaydulin
Modified: 2017-03-16 08:47 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description mshaydulin 2017-03-16 08:47:50 UTC
Hi all,

I'm trying to build Apache httpd server 2.4.25 on Ubuntu 4.8.0.
The idea is to embed httpd server into own application and to be able
to install on target machine in any location in file system.
I found the tool build/binbuild.sh which should do exactly
what I want.
After I run binbuild.sh I get an archive
Then I unpack it and run install-bindist.sh <target dir> to deploy httpd.

The only problem I see is the issue with httpd.conf file. After I run
install-bindist.sh, I see empty conf/httpd.conf file (and
empty conf/httpd-std.conf) in target directory.

I started to search what is wrong, and found that binbuild.sh raises
this error at the end:
Binary image successfully created...
Server version: Apache/2.4.25 (Unix)
Server built:   Mar  9 2017 08:24:50
Creating supplementary files...
sed: can't read bindist/conf/httpd-std.conf: No such file or directory
Creating distribution archive and readme file...

Inside binbuild.sh I see these lines:
chmod 755 install-bindist.sh

sed -e "s%$BUILD_DIR%$DEFAULT_DIR%" \
    -e "s%^ServerAdmin.*%ServerAdmin you@your.address%" \
    -e "s%#ServerName.*%#ServerName localhost%" \
    bindist/conf/httpd-std.conf > bindist/conf/httpd.conf
cp bindist/conf/httpd.conf bindist/conf/httpd-std.conf

However I can't find httpd-std.conf.
As I can see in httpd source code (FishEye), this files was deleted
more than 10 years ago. As well as httpd-std.conf.in

I suppose the fix is simple, just fix the name and path like this:
    bindist/conf/original/httpd.conf > bindist/conf/httpd.conf
cp bindist/conf/httpd.conf bindist/conf/original/httpd.conf