the precedence of the contents of this file changes depending on whether
it's started at boot time or started manually, and it's not really
necessary to add the extra complexity since it's valid (and easier) to just
set apache_start in /etc/rc.conf.
Also make the script more verbose.
Previously, if apache_start was set in /etc/rc.conf and /etc/rc.d/apache was
loaded as part of the /etc/rc start sequence, apache_start's value would
be overridden by "apache_start=start" in this script, because /etc/rc.conf
would have already been loaded and load_rc_config() would not reload it again.
This problem would not have been seen if /etc/rc.d/apache was started
manually, or /etc/rc.conf.d/apache or @PKG_SYSCONFDIR@/apache_start.conf
was used to set apache_start.
(I am using /etc/rc.conf, and was wondering why apache wasn't starting
with ssl support at boot, but worked after a manual restart...)
Update www/apache2 to 2.0.35, the first stable release of Apache 2.x.
Pkgsrc changes include:
*) Compiling the included modules statically. Add-ons will be built
dynamically.
*) Match improvements to www/apache rc.d script.
*) Automatically add "Listen 0.0.0.0:80" to the sample config files as the
default install of NetBSD is IPv4/IPv6 and we want the default install of
Apache to work out-of-the-box.
*) Automatically reset the User and Group directives to match the ones for
suEXEC in the config files to ease the use of suEXEC in Apache.
Changes from version 2.0.32 beta include:
*) Small bug fixes across the board.
*) Bug fixes to the various MPMs.
*) Performance improvements.
*) Fixes for mod_include errors on boundary conditions
*) Bug fixes for mod_proxy to prevent hangs and for RFC2616 compliance.
*) Improvements to mod_dav for improved API and for RFC 3253 compliance
*) Improvemants to mod_ssl to support SSL proxy and RSA SSLC 1.x/2.x
*) Greatly improve mod_cache (disk/mem) [this is disabled in pkgsrc]
*) New scoreboard file implementation that is readable by 3rd-party apps.
*) Allow all Perchild directives to accept either numerical UID/GID
or logical user/group names.
*) Add support for macro expansion within the variable names in
<!--#echo--> and <!--#set--> directives
*) Implement SSLSessionCache shmht and shmcb.
*) New directive ProxyIOBufferSize. Sets the size of the buffer used
when reading from a remote HTTP server in proxy.
*) Scrap CacheMaxExpireMin and CacheDefaultExpireMin. Change
CacheMaxExpire and CacheDefaultExpire to use seconds rather than
hours.
*) New Directive SSIUndefinedEcho. to change the '(none)' echoed
for a undefined variable.
*) Introduce PassPhraseDialog "|/path/to/pipe" mechanism to mod_ssl.
*) New Directive for mod_proxy: ProxyRemoteMatch.
*) Fix IPv6 name-based virtual hosts.
*) Introduce AddOutputFilterByType directive.
include:
*) Move the binaries back into ${PREFIX}/sbin to match the locations
for www/apache.
*) Build the Apache modules (including mod_ssl) so that apache2 has
the same functionality as apache.
*) Support shared modules on platforms that support them. Otherwise,
link the modules statically into the server.
*) Support suEXEC in the same way as for www/apache.
*) Honor PKG_SYSCONFDIR.
*) Add a rc.d-style control script based on www/apache/files/apache.sh.
*) Strongly buildlinkify again after previous changes broke it.
Relevant changes from version 2.0.28 beta include:
*) A ton of bug fixes in both the main server code and the module code
(it _is_ a beta release following a previous beta release).
*) Several performance and memory optimizations.
*) The Location: response header field, used for external
redirect, *must* be an absoluteURI. The Redirect directive
tested for that, but RedirectMatch didn't -- it would allow
almost anything through. Now it will try to turn an abs_path
into an absoluteURI, but it will correctly varf like Redirect
if the final redirection target isn't an absoluteURI.
*) Add several new mod_proxy directives:
ProxyTimeout, ProxyPreserveHost, ProxyPass.
*) FTP directory listings are now always retrieved in ASCII mode.
The FTP proxy properly escapes URI's and HTML in the generated
listing, and escapes the path components when talking to the FTP
server.
*) Add FileETag directive to allow configurable control of what
data are used to form ETag values for file-based URIs.
*) Introduced the ForceLanguagePriority directive, to prevent
returning MULTIPLE_CHOICES or NONE_ACCEPTABLE in some cases,
when using Multiviews.