67f6f671d533a293deb776c58eafafbd3fa58513 1525000 |
|
20-Sep-2013 |
covener |
name-based vhosts listed twice with apachectl -S
When processing a vhost with * or _default_, we'd add the "names" once
for 0.0.0.0 and once for [::], but these are stored in the same "default"
ip chain. Catch the back-to-back wildcard + same port and short-circuit the
second add.
Submitted By: rjung
Committed By: covener |
9ea14ade0d235bec11e6c221b888a6630a0be849 1481306 |
|
11-May-2013 |
covener |
PR54948: wildcard name-based vhosts printed twice in apachectl -S |
0dbceeb30036d607123797d2fe6bbc7708c4d997 1436457 |
|
21-Jan-2013 |
rpluem |
* Ensure that is_v6literal is always initialized |
891dde754a0a71626be8713e2d04cbbd6e2eb9c5 1426988 |
|
30-Dec-2012 |
sf |
remove comment; empty host headers can happen in proxy requests |
f6c726670b7b2ea9f2c02851e4428062c1e411e4 1426879 |
|
30-Dec-2012 |
sf |
add log tags missing in r1426877 |
4576c1a9ef54cd1e5555ee07d016a7f559f80338 1426877 |
|
30-Dec-2012 |
sf |
Add an option to enforce stricter HTTP conformance
This is a first stab, the checks will likely have to be revised.
For now, we check
* if the request line contains control characters
* if the request uri has fragment or username/password
* that the request method is standard or registered with RegisterHttpMethod
* that the request protocol is of the form HTTP/[1-9]+.[0-9]+,
or missing for 0.9
* if there is garbage in the request line after the protocol
* if any request header contains control characters
* if any request header has an empty name
* for the host name in the URL or Host header:
- if an IPv4 dotted decimal address: Reject octal or hex values, require
exactly four parts
- if a DNS host name: Reject non-alphanumeric characters besides '.' and
'-'. As a side effect, this rejects multiple Host headers.
* if any response header contains control characters
* if any response header has an empty name
* that the Location response header (if present) has a valid scheme and is
absolute
If we have a host name both from the URL and the Host header, we replace the
Host header with the value from the URL to enforce RFC conformance.
There is a log-only mode, but the loglevels of the logged messages need some
thought/work. Currently, the checks for incoming data log for 'core' and the
checks for outgoing data log for 'http'. Maybe we need a way to configure the
loglevels separately from the core/http loglevels. |
9811aed12bbc71783d2e544ccb5fecd193843ead 1426827 |
|
29-Dec-2012 |
sf |
Correctly parse an IPv6 literal host specification in an absolute URL
in the request line.
- Fix handling of brackets [ ] surrounding the IPv6 address.
- Skip parsing r->hostname again if not necessary.
- Do some checks that the IPv6 address is sane. This is not done by
apr_parse_addr_port(). |
109e67fecebfd4958d03e3e88564bb4dc9dd194f 1407006 |
|
08-Nov-2012 |
sf |
log client error at level debug, log broken Host header value |
185aa71728867671e105178b4c66fbc22b65ae26 1209766 |
|
03-Dec-2011 |
sf |
Add lots of unique tags to error log messages |
5bfaaf573bacb45c1cf290ce85ecc676587e8a64 1174751 |
|
23-Sep-2011 |
jim |
Cleanup effort in prep for GA push:
Trim trailing whitespace... no func change |
f7407ba6bea5ed1151cfcefcfa774b531c26eecd 1172002 |
|
17-Sep-2011 |
rpluem |
* Correctly obey ServerName / ServerAlias if the Host header from the
request matches the VirtualHost address.
PR: 51709
Submitted by: Micha Lenk <micha lenk.info>
Reviewed by: rpluem |
7c6f514f2ef9b98f58b8f8a5f534eb78a75f29f2 1147806 |
|
18-Jul-2011 |
jorton |
* server/vhost.c (get_addresses): For '*' and '_default_', return
address(es) for any address family, not IPv4 only.
(dump_a_vhost): Use '*' for v4 or v6 wildcard address. |
3c290fd0361d6d9d84d97725eaf299456bddd6cf 1138627 |
|
22-Jun-2011 |
sf |
Various code cleanup
PR: 51398
Submitted by: Christophe Jaillet <christophe jaillet wanadoo fr> |
7184de27ec1d62a83c41cdeac0953ca9fd661e8c 1132781 |
|
06-Jun-2011 |
sf |
Introduce ap_(get|set)_core_module_config() functions/macros and use them
everywhere.
We know that the core module has module_index 0. Therefore we can save
some pointer operations in ap_get_module_config(cv, &core_module) and
ap_set_module_config(cv, &core_module, val). As these are called rather often,
this may actually have some (small) measurable effect. |
27c5ebb7d411a214f5b6b55a881086ce086d3dd3 1053309 |
|
28-Dec-2010 |
covener |
prefer exact port matches in ip-based VH lookup over wildcards. |
7697b1b7376a532163c621e050b70c90dcb15d66 1053230 |
|
28-Dec-2010 |
covener |
Remove need for NameVirtualHost directive by implicitly configuring any duplicated
VH addresses as name-based virtual hosts. This also combines _default_ and *
into a single type of wildcard since these presented a false dichotomy between
address specs.
These are post-config only changes and do not change the runtime lookups.
The biggest loss here is that an unintended duplication of virtual host addresses
can no longer be reported as directly in the past, but should still be debuggabl
via apachectl -S (unintended NVH). These problems are a drop in the bucket compared
to the difficulty users have with using NameVirtualHost. |
e08076ca56e6cb68b30846b9e9339061058aae6d 990844 |
|
30-Aug-2010 |
poirier |
Fail startup for vhost configuration problems, rather than
running with a configuration with undefined behavior. |
b6d9e9d6421b9cebfc74f9c1a870b8b85473f1c1 982629 |
|
05-Aug-2010 |
poirier |
With -S, show ServerAlias values that go with the virtual hosts |
36ef8f77bffe75d1aa327882be1b5bdbe2ff567a 951895 |
|
06-Jun-2010 |
sf |
Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
advantage of per-module loglevels |
56a4b48128e08a8f78e27e9f56392f54f3b59024 934984 |
|
16-Apr-2010 |
rbowen |
Expand the "NameVirtualHost has no VirtualHosts" error message, since it
seems that we have to explain a dozen times a day what it really means. |
c5d006b2861d49c61bcf79316163e30611c6fd08 883860 |
|
24-Nov-2009 |
trawick |
non-static directive parsers should be AP_DECLARE_NONSTD() |
4f133508c93204c06e1acba9774ff184e5812606 832172 |
|
02-Nov-2009 |
niq |
Vhosts: treating a pure-numeric Host header as a port is nonsense.
PR 44979 |
2659802f083b95856f571b49e4ec087838b53039 727452 |
|
17-Dec-2008 |
rederpj |
Output -M and -S dumps (modules and vhosts) to stdout instead of stderr. |
d6e81217d873dc3b87fc4ffa5fbac2fad4191a15 645455 |
|
07-Apr-2008 |
pquerna |
Remove all references to CORE_PRIVATE. |
842ae4bd224140319ae7feec1872b93dfd491143 420983 |
|
11-Jul-2006 |
fielding |
update license header text |
3d81f57512275ca06a60a9bcbd23c1f8b429fdf2 395228 |
|
19-Apr-2006 |
colm |
Update the copyright year in all .c, .h and .xml files |
e8f95a682820a599fe41b22977010636be5c2717 332306 |
|
10-Nov-2005 |
jim |
No functional Change: Removing trailing whitespace. This also
means that "blank" lines consisting of just spaces or
tabs are now really blank lines |
43c3e6a4b559b76b750c245ee95e2782c15b4296 332305 |
|
10-Nov-2005 |
jim |
No functional change: simple detabbing of indented code. |
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8 263931 |
|
29-Aug-2005 |
ianh |
Doxygen fixup / cleanup
submited by: Neale Ranns neale ranns.org
reviewed by: Ian Holsman |
f3aa436e29aa30e29695a18b7f469dd66b39b7e4 230469 |
|
05-Aug-2005 |
jorton |
* server/vhost.c (get_addresses): Fix double negative and make errors
consistent; thanks Joshua. |
de00ec7378227d05be63ecd2053ebbb01b940023 230453 |
|
05-Aug-2005 |
jorton |
* server/vhost.c (get_addresses): Fail with an error message rather
than an assert() for errors which plague users on Solaris boxes which
don't have a properly configured resolver.
PR: 27525 |
20f1b1a67eef5ab0f3295608c89964a7dca4fdd1 164538 |
|
25-Apr-2005 |
pquerna |
Add ap_vhost_iterate_given_conn() as I had previously mentioned on the mailing list. |
08cb74ca432a8c24e39f17dedce527e6a47b8001 151408 |
|
04-Feb-2005 |
jerenkrantz |
Update copyright year to 2005 and standardize on current copyright owner line. |
97c78987224dcd037076d393aad1867c26b2c8cf 103897 |
|
11-Jun-2004 |
trawick |
<VirtualHost myhost> now applies to all IP addresses for myhost
instead of just the first one reported by the resolver. This
corrects a regression since 1.3. |
e96497df0d951dfae6055e6c91be747daffd382e 103400 |
|
15-Apr-2004 |
jorton |
* server/vhost.c (remove_unused_name_vhosts): Remove redundant check;
catch all port-based NameVirtualHosts without defined VirtualHosts,
preventing segfaults later in some misconfigurations.
PR: 27731 |
f4b96a996afbc46872f57ad1450e6ee1c8f13707 102936 |
|
11-Mar-2004 |
jorton |
* server/vhost.c: Fix comments which got search'n'replaced. |
6de8046f8f7e07cd83895a528df25d977e502c76 102619 |
|
09-Feb-2004 |
nd |
fix name of The Apache Software Foundation |
2af7ecf8c1589908aac793c154942d3cb3f6e492 102589 |
|
08-Feb-2004 |
nd |
fix copyright dates according to the first check in |
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dc 102525 |
|
06-Feb-2004 |
nd |
apply Apache License, Version 2.0 |
26a4456dd6f1a5d7d7fff766551461a578687c4a 102135 |
|
01-Jan-2004 |
nd |
update license to 2004. |
c1b808d160bfb5c849263be8d4acff600853a328 101991 |
|
05-Dec-2003 |
trawick |
stop using apr_sockaddr_port_get() accessor function, as it will
disappear from APR 1.0 API shortly |
33bdcae1f7a1a65e351dda2a766a0cf28b1e695d 98573 |
|
03-Feb-2003 |
nd |
finished that boring job:
update license to 2003.
Happy New Year! ;-)) |
3c8b3749225668f06abbb2b023a833a2cef46931 96616 |
|
02-Sep-2002 |
brianp |
Rearranged the loop in fix_hostname() to run faster in the
common case in which lowercase characters are the most frequent
characters in the hostname |
58fd79b56eb624bf011772994e9761d3c2e228c1 95993 |
|
10-Jul-2002 |
orlikowski |
Continue the Bill Rowe apr_size_t crusade. |
961ff00a8f1fe79a8ac8b18617b40a404e28cb35 95866 |
|
23-Jun-2002 |
brianp |
Convert the hostname to all-lowercase in fix_hostname() so that
the implementation matches the comments. (Note: The current virtual
hosting code does case-insensitive host matching, so this fix is useful
mostly to help ensure that custom modules and any future vhosting code
don't get tripped up by case-sensitivity issues.)
Submitted by: Perry Harrington <pedward@webcom.com>
Reviewed by: Brian Pane |
2d399cd7535887fceaa9f8f116eb98ce68ddd602 95149 |
|
17-May-2002 |
trawick |
stop using APLOG_NOERRNO in calls to ap_log_?error() |
d40fc22d54d5969fa330e4983cf07f450f7029ce 94885 |
|
01-May-2002 |
brianp |
Eliminate some sprintf calls |
9c518951a46c7a12e20876827bb2e84ef87d3c11 94655 |
|
15-Apr-2002 |
jerenkrantz |
Allow empty Host: header arguments.
Previously, request that sent:
GET / HTTP/1.1
Host:
would get a 400. RFC 2616 specifically allows for a "blank" host field.
The read_request code properly handled this, but the fix_hostname in
vhost.c would cause the 400. Now, simply return in fix_hostname when
we see a blank hostname rather than erroring out.
PR: 7441 |
ccad4fdc6c75a352157a413bd3bbaf4d0c8a6f72 93988 |
|
18-Mar-2002 |
brianp |
Fix for vhosts where the hostname is followed by '.'
PR: 9187
Submitted by: Ryan Cruse <ryan@estara.com> |
39b76a07959a0a332366c735a23894d9e8ed6872 93960 |
|
15-Mar-2002 |
trawick |
clean up the use of apr_sockaddr_t (stay out of family-specific
struct sockaddr* as much as possible) |
45acd673a68181802b112e97e84fa3813ddd3ec1 93922 |
|
13-Mar-2002 |
stoddard |
Fix win32 compile breakage. |
bc8fd1b0b1afdf89b8d28eefa8cd74e26ba97986 93918 |
|
13-Mar-2002 |
fielding |
Update our copyright for this year. |
5f08a022a210f4e511561e89f500621a15e6177d 93494 |
|
19-Feb-2002 |
trawick |
fix a v4-specific INADDR_ANY check that kept name-based virtual hosts
from working with IPv6 |
8fd7c5046d164fb0959222497e5925dfc6a52ff3 92611 |
|
26-Dec-2001 |
trawick |
use a new APR function to perform socket address comparison so
that we don't have to handle v4-mapped IPv6 addresses here |
910df8b3f50a0515b430b999d4750de94c509f2a 92607 |
|
26-Dec-2001 |
trawick |
Fix matching of vhosts by ip address so we find IPv4
vhost address when target address is v4-mapped form of
that address.
This problem was reported by Don Hughes. |
560f6ac786d611b858b2bad932713d9e971f0716 92600 |
|
25-Dec-2001 |
trawick |
add a comment about the need to check for a host after returning
from apr_parse_addr_port() |
7bf77d70b6830636bc36e6b76a228c301be23ff7 92599 |
|
25-Dec-2001 |
brianp |
Fixed a segfault that occurred during startup if a VirtualHost
directive had a port but no address
Reported by: Don Hughes <support@sannotes.org> |
900127764fb985c340ee4979cac97146a330c694 92054 |
|
20-Nov-2001 |
trawick |
Get IPv6 vhosts working (again ?).
There were a couple of bogus IPv4-specific comparisons which prevented
the data structures from being built correctly in ap_fini_vhost_config().
One of these (INADDR_ANY) can be easily rewritten to work with IPv6. The
other (DEFAULT_VHOST_ADDR) isn't necessary for IPv6. Note that this is
because we don't support the various flavors of _default_ that
Apache-1.3+KAME-patch supports.
PR: 8118 |
e6cc28a5eb3371ba0c38e941855e71ff0054f50e 91887 |
|
13-Nov-2001 |
rbb |
Begin to abstract out the underlying transport layer.
The first step is to remove the socket from the conn_rec,
the server now lives in a context that is passed to the
core's input and output filters. This forces us to be very
careful when adding calls that use the socket directly,
because the socket isn't available in most locations. |
644be6f54749d2d9950d2c4d2ac448f7af016d26 91798 |
|
08-Nov-2001 |
martin |
Fixed previous patch to reflect what Apache-1.3 did regarding self-
referential uri's, and updated the manual accordingly.
XXX There is a kludge here: XXX the port number from the client's Host:
header used to be tossed, and there is no clean mechanism to pass it
(in the request_rec) to other consumers. As the unparsed_uri structure
(which could avoid repeated parsing of URI, Host, Port etc) seems to be
mostly unused currently, I used that to pass the port. |
785be1b6298010956622771c870ab3cd8ca57a2f 91792 |
|
07-Nov-2001 |
aaron |
Please do not mix spaces and tabs within the same blocks, and please do not
arbitrarily and inconsistently wrap lines. I apologise ahead of time for
mucking up the cvslog, but this needed to be done. |
e160b861b50a3a8dcc013b8cd3ef849fe777e52f 91470 |
|
15-Oct-2001 |
gregames |
insure that a '*' in <VirtualHost *> or NameVirtualHost * matches all ports.
The recent change to eliminate the Port directive exposed this problem. |
0db1b9810f06c0e3c537e0e0dfbc30160c308526 90734 |
|
27-Aug-2001 |
trawick |
Fix a segfault when a numeric host (e.g., "Host: 123") was specified.
apr_parse_addr_port() assumes that if there is just a number it must
be a port, but here we need to assume that it is a host.
todo: pass a flag into apr_parse_addr_port()? unclear whether or
not that is cleaner overall |
a7ed9c525f9460187f327cea953bf90ecf1bdc51 88298 |
|
24-Feb-2001 |
gstein |
*) fix inline handling. we had: apr_inline, APR_INLINE, USE_GNU_INLINE, and
INLINE. Now, we just have APR_INLINE and APR_HAS_INLINE.
- convert all usage
- note that apr_general messed up the defn (compared to apr.h)
- simplify the inline decision logic in os/*/os.h
- simplify the code in os/*/os-inline.c
*) toss ap_checkconv() [no longer used] |
b99dbaab171d91e1b664397cc40e039d0c087c65 88184 |
|
16-Feb-2001 |
fielding |
Update copyright to 2001 |
7fae9cc4639013f3c04c085547256c68814aee8f 88120 |
|
12-Feb-2001 |
trawick |
include <arpa/inet.h> for the declarations for htons() et al; OS/390 has
macros in arpa/inet.h which turn such "calls" into nothing and does not
have functions to link against in libc |
1b21d7b3d97def358b2e923655edeb16613a1c31 88060 |
|
10-Feb-2001 |
gstein |
Clean up some of the includes:
- explicitly include apr_lib.h since ap_config.h doesn't
- use apr_want.h where possible
- use APR_HAVE_ where possible
- remove some unneeded includes |
066877f1a045103acfdd376d48cdd473c33f409b 88019 |
|
08-Feb-2001 |
dougm |
renaming various functions for consistency sake
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by: |
71715c646d5231de578431f8961e711764b899d3 87803 |
|
24-Jan-2001 |
fanf |
Relax the checking of Host: headers so that only character sequences that
are sensitive to the filesystem are rejected, i.e. forward slashes,
backward slashes, and sequences of more than one dot. This supports iDNS
without compromising the safety of mass vhosting.
PR: 6635 |
ebc18d48bea83ee5ed7a1b4e30007e5192539829 87725 |
|
19-Jan-2001 |
wrowe |
Some missing exports |
eae32ab3fb398ca408bc2d45b22adf1b67a75471 87393 |
|
18-Dec-2000 |
rbb |
Get "NameVirtualHost *" option working in Apache 2.0 |
1e75e6b00db385266648e76f94d6c192b26dcd2e 87392 |
|
18-Dec-2000 |
rbb |
Clean up some formatting. Using a tab of 22 characters makes the output
very annoying to read. 8 looks much more reasonable to me.
PR:
Obtained from:
Submitted by:
Reviewed by: |
bbbf8f0e622ad5a37ccf70f35660fc755575278a 87391 |
|
17-Dec-2000 |
rbb |
Get -t -D DUMP_VHOSTS working and properly documented. This removes the
-S option from the docs. |
6b38fca3ec543a0f72efd5683e91a0b30fc752d1 87377 |
|
16-Dec-2000 |
trawick |
get_addresses()
. use apr_parse_addr_port() so we handle IPv6 addresses on
NameVirtualHost and <VirtualHost > directives
. don't hardcode AF_INET when a hostname or IP address was
coded
dump_a_vhost()
. check the address family before looking for certain IPv4
addresses
ap_fini_vhost_config()
. pass apr_status_t to ap_log_error() after apr_getnameinfo()
fails |
3c48210f662a2ab8ed90708989e04c09aae33cb2 87370 |
|
16-Dec-2000 |
trawick |
Use apr_parse_addr_port() in fix_hostname(). This simplifies the
code by a small (okay, tiny) amount and lets IPv6 numeric address
strings be passed through.
Obtained from: the idea is from the KAME IPv6 patch for Apache 1.3 |
3233e75959b9d5e99acedfcc50012a87d789abd0 87367 |
|
16-Dec-2000 |
trawick |
Fix a problem with the last commit... I missed one of the hashing changes
so some of the code had an unnecessary IPv4 assumption. |
17f3ba69f65182426ad4e568bb2d6f192ccd2ed5 87366 |
|
16-Dec-2000 |
trawick |
Get rid of some IPv4 dependencies by passing the hash function the
apr_sockaddr_t * instead of the IPv4 address. |
dd61123a42fb94bda8e5c13bb204d812616e7039 87365 |
|
16-Dec-2000 |
trawick |
Fix the call to apr_snprintf() for formatting the sockaddr in
a vhost entry when dumping the vhost config. |
8a261a9f7d18d1e862d63f68e93f288d3e1f0d94 87363 |
|
15-Dec-2000 |
trawick |
move closer to IPv6 support by changing the server_addr_rec
representation of the bound address to something which handles
IPv6; this also allows us to switch to APR resolver routines
in places instead of calling gethostbyname() and gethostbyaddr()
directly
Issues remaining with this set of changes:
1) apr_snprintf()'s %pA formatting needs to change to take
apr_sockaddr_t * instead of sockaddr_in * -OR- just get rid
of that type of formatting
2) apr_get_inaddr() is no longer used and should be removed |
91644a5f4d3e992dc208304b50e80bbb236fca89 87342 |
|
14-Dec-2000 |
trawick |
The local_addr and remote_addr fields in the conn_rec are now
apr_sockaddr_t * instead of sockaddr_in. This is a small step
towards IPv6 support. |
382fa07a63096c4a1aabfed36433ea5ac9c40ad0 87050 |
|
21-Nov-2000 |
trawick |
updates to changed interfaces to apr_set_port(), apr_get_port(),
apr_set_ipaddr(), and apr_get_ipaddr() |
1cd6db66efebdf2540a2975bae4173dc68569ff6 87012 |
|
18-Nov-2000 |
dreid |
Change references of AF_ to reflect APR_ so they should work
on all systems. |
d17890657bc529b3f9db20e5546511182b829565 86910 |
|
10-Nov-2000 |
dreid |
More local/remote changes and tidy up http_vhost a bit.
Also add a new function to get an ap_ina_addr_t from a socket. |
91583d2e9c0550f539ea6f4dedf051979ad1ad88 86898 |
|
10-Nov-2000 |
fanf |
In mass hosting setups (using mod_vhost_alias or mod_rewrite) where
the hostname is interpolated into the filename, we need to be sure
that the result of interpolation doesn't expose parts of the
filesystem that should be private. This was done by checking the
syntax of the Host: header according to RFC 1123 and RFC 952. However,
many people have broken configurations that violate this syntax
(frequently because they use underscores in their names), and it also
doesn't accommodate the current effort to internationalize the DNS. I
don't think the former is a compelling reason to relax the syntax
checking, but the latter does justify this change.
The only RFC on internationalized DNS at the moment is RFC 2825 which
is an introduction to how difficult the whole thing is; the other
official documentation is a pile of Internet Drafts produced by the
Internationalized Domain Names Working Group of the IETF (with names
starting "draft-ietf-idn-"). However they have very little to say
about URIs, and the current Internet draft about internationalized
URIs (draft-masinter-url-i18n-05) has very little to say about
hostnames :-( On the gripping hand there is some useful information at
<http://www.apng.org/idns/> where there is some iDNS testbed work
going on. The basic idea is that although the format of the hostnames
in the DNS itself remains compatible with RFC 1123, the actual
hostname presented to the resolver is in UTF8, and therefore the
hostname in the URL and Host: header is also in UTF8.
This change relaxes the checking so that only character sequences that
are sensitive to the filesystem are rejected, i.e. forward slashes,
backward slashes, and sequences of more than one dot.
PR: 6635 |
35ecf536dec58844b65e1edfd1633d36ea091acb 86895 |
|
10-Nov-2000 |
dreid |
Bring the apr_in_addr type into line with naming conventions and make changes
where appropriate. At least on my system virtual hosts seem to still work :) |
74b39333600dee3260355ad3a06e36ef6c61c8f1 86890 |
|
09-Nov-2000 |
dreid |
Change the code to reflect the recent API changes...
Alter http_vhost.c to use the new apr_get_inaddr fucntion. Old code is still
there just in case it breaks. can someone check it who knows this stuff? |
7afdaa3ee342af2e075f62c619b60628556f7205 86870 |
|
08-Nov-2000 |
dreid |
This adds the APR_LOCAL/APR_REMOTE to APR and changes the apr_get/set_port
functions to use it. This is onyl the start and I'll pause a while before
I continue in case people really hate this. The patch can be backed out and
all evidence will be removed, but I think this makes maintaining/developing
the code easier in the long term. |
8f8ec0957334f50b7ac11359f90490ee467258ee 86869 |
|
08-Nov-2000 |
dreid |
More cleanup of apr_port_t stuff.
This file will need a lot of work as it's using a lot of "raw" information
from socket structures that won't work with IPv6. Needs to be abstracted out
and use APR instead. |
eaa7fe3cc26f8118ed72e5811aead02328d62448 86868 |
|
08-Nov-2000 |
dreid |
Doh! Missed this from the last commit... |
dad234382d8424e1c5a30af2838e172aec9d6d1b 86866 |
|
08-Nov-2000 |
dreid |
Start of moving to apr_port_t in the server code. This will probably the first
of a few... |
e93ddd15fd44e7542b9ace8567852ab2b7604bc7 86824 |
|
03-Nov-2000 |
dreid |
Remove some more references to sockaddr structures...
Removing the rest will need someone who knows this code to look through
in more detail. |
45e5168aee4720a335af59306e297c1f58a82138 86637 |
|
18-Oct-2000 |
fanf |
Tighten up the syntax checking of Host: headers to fix a
security bug in some mass virtual hosting configurations
that can allow a remote attacker to retrieve some files
on the system that should be inaccessible. The problem
occured with requests including the line "Host: ..." --
the last dot is stripped and the remaining ".." then
reveals a parent directory.
Reported by: Peter Christoffersen <pch@mindpass.com>
Message-ID: <8quts6$2el$1@news.inet.tele.dk>
Newsgroups: comp.infosystems.www.servers.unix |
3d96ee83babeec32482c9082c9426340cee8c44d 86609 |
|
16-Oct-2000 |
wrowe |
Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbols
for CORE_EXPORT to AP_CORE_DECLARE (namespace protecting the wrapper)
and retitled API_EXPORT as AP_DECLARE and APR_EXPORT as APR_DECLARE.
All _VAR_ flavors changes to _DATA to be absolutely clear.
Thank you Greg, for the most obvious suggestion. |
b88f887ed5554d9050d97f9a56a89ae62bdbd906 86208 |
|
12-Sep-2000 |
fanf |
This commit adds support for purely name-based virtual hosting that
does not require any IP addresses in httpd.conf and which disregards
the local IP address of any connections. This will be particularly
appreciated by people running little servers on machines with
dynamically configured IP addresses, and by people wishing to use
identical httpd.conf files on all the machines in a load-balanced
cluster.
The syntax is:
NameVirtualHost *
<VirtualHost *>
ServerName my.friend.has.a.silly.vanitydomain.org
DocumentRoot /usr/local/apache/docs1
</VirtualHost>
<VirtualHost *>
ServerName but.easier.to.spell.than.my.vanitydomain.org
DocumentRoot /usr/local/apache/docs2
</VirtualHost>
The implementation is a straightforward extension of what is there
already although the patch is made somewhat larger by the need to
avoid duplicate code for normal and wildcarded NameVirtualHosts.
PR: 5595, 4455
[ported from 1.3.13] |
10a4cdd68ef1ca0e54af296fe1d08ac00150c90b 86008 |
|
06-Aug-2000 |
wrowe |
Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...
see src/lib/apr/apr_compat.h for most details.
Also a few minor nits to get Win32 to build.
PR:
Obtained from:
Submitted by:
Reviewed by: |
1ccd992d37d62c8cb2056126f2234f64ec189bfd 85976 |
|
02-Aug-2000 |
dougm |
prefix libapr functions and types with apr_ |
b6055b7832a0e4d0818416252fff5925aaebae4b 85867 |
|
21-Jul-2000 |
rbb |
Move all APR functions related to strings to their own directory, and
create a new header for those functions. This is the first step to
removing the apr/lib directory completely, and moving those files/functions
to descriptive directories. |
d41217398f0e1031adbb6f5bd37f45737c805def 85723 |
|
28-Jun-2000 |
trawick |
Include strings.h for strcasecmp(), strncasecmp(), and bzero().
Include time.h for time().
This removes a bunch of compiler warnings with gcc -Wall on AIX.
Submitted by: Jeff Trawick, Victor Orlikowski |
66d349e02d1a5a599a01c977d2c5b0009181f7de 85599 |
|
17-Jun-2000 |
ben |
More consification, correct command initialisation. |
0e6e93183d91142d7cf9ffbf502114ff77bd9e19 85595 |
|
17-Jun-2000 |
ben |
Command handler revamp. Note that this makes the code produce a LOT of
warnings! |
fdeba8dafd227781a897c772905bb32197e92797 85567 |
|
13-Jun-2000 |
trawick |
Get the ap_config.h cleanup working on FreeBSD by adding includes of
additional system headers.
A platform check in logresolve.c to determine whether or not we include
<arpa/inet.h> was converted to a feature check. |
48d7c43629323c8d5ee9f7bd0d194de0a376b391 85558 |
|
13-Jun-2000 |
rbb |
Protect system header files with the appropriate macros. |
d4f1d9c1ff112a8ab9bee31f196973761329b236 85553 |
|
12-Jun-2000 |
rbb |
Clean up a big chunk of ap_config.h. This basically stops ap_config.h from
including any files. Because of this change, other files must include
their own headers. I also cleaned up a couple of other bugs in some
modules because I had to compile them all.
I expect this to break multiple platforms, but this will be fixed over time.
The massive configure cleanup is almost done. I will go through the files
one more time after this commit. |
404e2e1f8ad30c2d996f5fb6b3a9a4a4a14a004b 84963 |
|
14-Apr-2000 |
rbb |
Change ap_context_t to ap_pool_t. This compiles, runs, and serves pages
on Linux, but probably breaks somewhere. |
7e79e8fd53348f9fc6e8009a4a2522425ab6f08f 84878 |
|
31-Mar-2000 |
fielding |
Update to Apache Software License version 1.1 |
64185f9824e42f21ca7b9ae6c004484215c031a7 84725 |
|
10-Mar-2000 |
rbb |
Fix all the License issues. Including:
s/Apache Group/Apache Software Foundation/
s/1999/2000/
s/Sascha's license/ASF license |
2d71630471d1c23f0137309e3c3957c633ecbfd6 84531 |
|
28-Jan-2000 |
rbb |
Include ap_config.h before httpd.h, this ensures that AP_USE_HSREGEX is
defined correctly in all C files. |
6afe4c4dc334ef3e5001a1739e2336962f8d07fe 84519 |
|
26-Jan-2000 |
bjh |
Quiet some warnings.
- 1 'suggest parentheses around assignment used as truth value'
- a few "subscript has type `char'" |
b0f20a4a26bcfa85724b1c2e5ec6a077f12ef44c 84493 |
|
19-Jan-2000 |
rbb |
Finish the commits for the change in the header files. Basically, this hides
all of the Apache macros that modules don't need access to. This should
have been committed with the modules, but I wasn't paying attention to the
directory I was in when I ran the commit.
Submitted by: Manoj Kasichainula and Ryan Bloom |
5e4791fd54c10fdd77ca81bee8ac8398f16d6d6a 84350 |
|
21-Dec-1999 |
stoddard |
Fix compile break introduced to Apache 2.0 by the mass vhosting security fix. |
3926b3b7716683a1241c1ff6f8dd2f9c5073665a 84349 |
|
21-Dec-1999 |
fanf |
Fix the mass vhosting security problem spotted by Lars, as in 1.3
Submitted by: Ben Hyde
Reviewed by: Tony Finch |
1be548ab863a87b6d82638bf41f8d323f3aa2c3a 84294 |
|
15-Dec-1999 |
rbb |
Cleanup the Windows build a bit by getting rid of more platform dependant
code. Still won't compile cleanly, but we are closer. I am hoping for a
clean Windows compile by Friday. |
93b653492fb3b4b65006e95a435629d806a9e589 84131 |
|
17-Nov-1999 |
rbb |
Cleaned up the APRFile uses in Apache. Also removed the apr.h header file
because it is no longer used. Finally, I updated the dependancies to
compile cleanly. |
0d281502553310060615306fb6ca92b2f4f97d7a 84128 |
|
16-Nov-1999 |
rbb |
Cleanup the ZZZ comments. Basically these used to mark places where APR
is needed. It is much easier to do this conversion by hand than by
searching for old comments, so they are going away now. |
0942697a9b5de44865676345a3828741c827efe6 84007 |
|
20-Oct-1999 |
rbb |
Add a status value to ap_log_error and ap_log_rerror. This allows us to use
apr_status codes in our error logs. The main advantage of this, is portable
error codes. Now, Windows will finally be able to use errno! |
b4c8a80f7dbfc9b56dbe03bdc28f0b5eb5f23697 83852 |
|
31-Aug-1999 |
rbb |
Changed pools to contexts. Tested with prefork and pthread mpm's. I'll
check this out tomorrow and make sure everything was checked in correctly. |
f51bc4b51ce3189b5a3002c0e1b5a12696830a9d 83780 |
|
26-Aug-1999 |
fielding |
Replace file descriptors with APRFile.
Submitted by: Bill Stoddard |
061c3874622b67beff724876b9bd1b1f291f2eaa 83779 |
|
26-Aug-1999 |
fielding |
Odd comments and leftover bits from the pthreads version.
The comments really should be deleted, or at least cleaned up.
Submitted by: pthreads leftovers |
51af95bb51b5084e883bad250b2afa2838e9ceeb 83765 |
|
26-Aug-1999 |
fielding |
Parts where server was eliminated from connection rec.
Submitted by: Dean Gaudet |
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1 83750 |
|
24-Aug-1999 |
fielding |
Apache 1.3.9 baseline for the Apache 2.0 repository.
Obtained from: Apache 1.3.9 (minus unused files), tag APACHE_1_3_9
Submitted by: Apache Group |