]> granicus.if.org Git - apache/log
apache
11 years agoUpdate syntax highlighter to match mod_macro definitions
Daniel Gruno [Mon, 21 Jan 2013 14:18:12 +0000 (14:18 +0000)]
Update syntax highlighter to match mod_macro definitions

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1436362 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdds mod_macro (english) to docs.
Rich Bowen [Mon, 21 Jan 2013 14:14:21 +0000 (14:14 +0000)]
Adds mod_macro (english) to docs.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1436359 13f79535-47bb-0310-9956-ffa450edef68

11 years agoTweaks to make the xml validate and build
Rich Bowen [Mon, 21 Jan 2013 14:13:22 +0000 (14:13 +0000)]
Tweaks to make the xml validate and build

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1436358 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdd mod_macro to Windows build.
Gregg Lewis Smith [Mon, 21 Jan 2013 01:20:33 +0000 (01:20 +0000)]
Add mod_macro to Windows build.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1436058 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdded mod_policy to NetWare build.
Guenter Knauf [Sun, 20 Jan 2013 13:06:37 +0000 (13:06 +0000)]
Added mod_policy to NetWare build.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1435836 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdded mod_macro to NetWare build.
Guenter Knauf [Sun, 20 Jan 2013 13:04:40 +0000 (13:04 +0000)]
Added mod_macro to NetWare build.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1435834 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdd "mod_macro" as a standard module, compiled in with "most".
Fabien Coelho [Sun, 20 Jan 2013 10:07:44 +0000 (10:07 +0000)]
Add "mod_macro" as a standard module, compiled in with "most".

This module was created in 1998 and has been distributed independently
ever since. It is hereby donated to the Apache Software Foundation.

There are quite a few comments in the source code to explain how it works,
as well as extensive non regression tests.

Some utilities about array processing could be moved to "core.c".
However, I finally decided against for now so that it stays as an external
and independent module, and thus may be backported with minimal impact
on the source tree.

Details of the addition:

* modules/core/mod_macro.c: module source code
* modules/core/test: non regression tests
  modules/core/test/conf/: configuration files
  modules/core/test/ref/: expected results
* docs/manual/mod/mod_macro.xml: English documentation
* docs/manual/mod/mod_macro.xml.fr: French documentation

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1435811 13f79535-47bb-0310-9956-ffa450edef68

11 years agoRebuild
Rich Bowen [Fri, 18 Jan 2013 22:01:14 +0000 (22:01 +0000)]
Rebuild

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1435368 13f79535-47bb-0310-9956-ffa450edef68

11 years agoErrorLogFormat has different defaults on different MPMs
Rich Bowen [Fri, 18 Jan 2013 21:59:02 +0000 (21:59 +0000)]
ErrorLogFormat has different defaults on different MPMs

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1435366 13f79535-47bb-0310-9956-ffa450edef68

11 years agoxforms
Daniel Gruno [Fri, 18 Jan 2013 20:23:34 +0000 (20:23 +0000)]
xforms

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1435331 13f79535-47bb-0310-9956-ffa450edef68

11 years agofix "missing" example
Daniel Gruno [Fri, 18 Jan 2013 20:22:02 +0000 (20:22 +0000)]
fix "missing" example

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1435327 13f79535-47bb-0310-9956-ffa450edef68

11 years agomod_proxy_ajp: Support unknown HTTP methods.
Rainer Jung [Fri, 18 Jan 2013 15:09:58 +0000 (15:09 +0000)]
mod_proxy_ajp: Support unknown HTTP methods.
BZ 54416

Forward unknown methods as request attributes
using method id SC_M_JK_STORED=0xFF and
request attribute id SC_A_STORED_METHOD=13.

Code ported from mod_jk (which got it from mod_jk2).

Supported by Tomcat at least since TC 4.1.
Doesn't seem to be supported by Jetty though.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1435178 13f79535-47bb-0310-9956-ffa450edef68

11 years agoUpdates.
Lucien Gentis [Fri, 18 Jan 2013 13:50:58 +0000 (13:50 +0000)]
Updates.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1435133 13f79535-47bb-0310-9956-ffa450edef68

11 years agoxforms
Daniel Gruno [Wed, 16 Jan 2013 18:57:32 +0000 (18:57 +0000)]
xforms

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1434110 13f79535-47bb-0310-9956-ffa450edef68

11 years agofix one more link
Daniel Gruno [Wed, 16 Jan 2013 18:54:45 +0000 (18:54 +0000)]
fix one more link

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1434108 13f79535-47bb-0310-9956-ffa450edef68

11 years agofix links
Daniel Gruno [Wed, 16 Jan 2013 18:50:58 +0000 (18:50 +0000)]
fix links

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1434105 13f79535-47bb-0310-9956-ffa450edef68

11 years agoIf r:regex does not match, only return 'false', don't try to create error messages...
Daniel Gruno [Wed, 16 Jan 2013 18:00:04 +0000 (18:00 +0000)]
If r:regex does not match, only return 'false', don't try to create error messages, because there should not be any - it's either match or no match here at this point.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1434065 13f79535-47bb-0310-9956-ffa450edef68

11 years ago* A limit of zero means unlimited for LimitRequestBody.
Ruediger Pluem [Wed, 16 Jan 2013 15:37:16 +0000 (15:37 +0000)]
* A limit of zero means unlimited for LimitRequestBody.

PR: 54435
Submitted by: Pavel Mateja <pavel netsafe.cz>
Reviewed by: rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433988 13f79535-47bb-0310-9956-ffa450edef68

11 years agoUsing the traditional way of declaring Lua functions does not seem to work with NetWa...
Daniel Gruno [Wed, 16 Jan 2013 14:52:52 +0000 (14:52 +0000)]
Using the traditional way of declaring Lua functions does not seem to work with NetWare (and possibly Windows too?)
Thus, at least until we find a smarter way, we have to move the r:* functions into lua_request.c and connect them from there.
The only functional change is that the transferred functions are now called through the request object instead of the apache2 package.
The distinction between what merited it to be in either structure seems very vague, so for now, we'll keep the HTTP return codes in the apache2 table, and the request/server functions in the request object.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433967 13f79535-47bb-0310-9956-ffa450edef68

11 years agoMake documentation reflect reality of what the code does - in that LoadModule
Justin Erenkrantz [Wed, 16 Jan 2013 09:03:17 +0000 (09:03 +0000)]
Make documentation reflect reality of what the code does - in that LoadModule
and LoadFile can be declared inside a vhost configuration.

minfrin vetoed restricting LoadModule to server context as we do in 1.3.
See Message-ID: <DE0E3427-46F0-4AF4-94E8-5297EDF9A58D@sharp.fm>

* docs/manual/mod/mod_so.xml: Denote virtual host context.
* docs/manual/mod/mod_so.html.en, docs/manual/quickreference.html.en: Update
  transformations.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433861 13f79535-47bb-0310-9956-ffa450edef68

11 years agoRebuild/test
Rich Bowen [Wed, 16 Jan 2013 01:49:17 +0000 (01:49 +0000)]
Rebuild/test

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433794 13f79535-47bb-0310-9956-ffa450edef68

11 years agoTypo
Rich Bowen [Wed, 16 Jan 2013 01:47:21 +0000 (01:47 +0000)]
Typo

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433792 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdds examples to the various <!--#config attributes.
Rich Bowen [Wed, 16 Jan 2013 01:43:26 +0000 (01:43 +0000)]
Adds examples to the various <!--#config attributes.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433789 13f79535-47bb-0310-9956-ffa450edef68

11 years agoThe word 'Basic' is not meaningful here. These are all of the available
Rich Bowen [Wed, 16 Jan 2013 01:12:16 +0000 (01:12 +0000)]
The word 'Basic' is not meaningful here. These are all of the available
elements.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433785 13f79535-47bb-0310-9956-ffa450edef68

11 years agoRebuild
Rich Bowen [Wed, 16 Jan 2013 01:09:21 +0000 (01:09 +0000)]
Rebuild

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433784 13f79535-47bb-0310-9956-ffa450edef68

11 years agoReplaces the term 'element' with the term 'function' so that it's
Rich Bowen [Wed, 16 Jan 2013 00:59:35 +0000 (00:59 +0000)]
Replaces the term 'element' with the term 'function' so that it's
clearer what we're talking about. (I'm aware that `element` is an SGML
term, but I think that the goal here is communication, rather than
necessarily using the right jargon.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433780 13f79535-47bb-0310-9956-ffa450edef68

11 years agoRebuild SSI change.
Rich Bowen [Wed, 16 Jan 2013 00:43:31 +0000 (00:43 +0000)]
Rebuild SSI change.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433775 13f79535-47bb-0310-9956-ffa450edef68

11 years agoOh, look, we overlooked another instance of 'Apache' where it should be
Rich Bowen [Wed, 16 Jan 2013 00:41:41 +0000 (00:41 +0000)]
Oh, look, we overlooked another instance of 'Apache' where it should be
'Apache httpd'

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433773 13f79535-47bb-0310-9956-ffa450edef68

11 years agorebuild
Rich Bowen [Wed, 16 Jan 2013 00:37:06 +0000 (00:37 +0000)]
rebuild

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433770 13f79535-47bb-0310-9956-ffa450edef68

11 years agoProvide an example in the introduction in order to motivate the lengthy
Rich Bowen [Wed, 16 Jan 2013 00:33:44 +0000 (00:33 +0000)]
Provide an example in the introduction in order to motivate the lengthy
setup process.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433768 13f79535-47bb-0310-9956-ffa450edef68

11 years agoLog a warning if ThreadStackSize has an inappropriate value.
Christophe Jaillet [Tue, 15 Jan 2013 21:53:07 +0000 (21:53 +0000)]
Log a warning if ThreadStackSize has an inappropriate value.
PR : 54311
Submitted by: Tianyin Xu <tixu cs ucsd edu>

Only event.c has been compiled on my system. The 2 others are just cut and paste.
I have left the same value for APLOGNO in event and eventopt has for the other logged messages. I don't know if it is the right way to do.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433682 13f79535-47bb-0310-9956-ffa450edef68

11 years agoImprove error message
Christophe Jaillet [Tue, 15 Jan 2013 20:20:14 +0000 (20:20 +0000)]
Improve error message
PR 54384

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433613 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdd helper function to execute command w args and get one line of output. Allow AuthL...
Daniel Ruggeri [Tue, 15 Jan 2013 16:00:44 +0000 (16:00 +0000)]
Add helper function to execute command w args and get one line of output. Allow AuthLDAPBindPassword to have exec: argument like SSLPassPhraseDialog

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433478 13f79535-47bb-0310-9956-ffa450edef68

11 years agofix mysql connection string in example
Daniel Gruno [Tue, 15 Jan 2013 10:43:44 +0000 (10:43 +0000)]
fix mysql connection string in example

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433346 13f79535-47bb-0310-9956-ffa450edef68

11 years agoFix htcacheclean list options "-a" and "-A".
Rainer Jung [Mon, 14 Jan 2013 17:38:34 +0000 (17:38 +0000)]
Fix htcacheclean list options "-a" and "-A".

No filetype without APR_FINFO_TYPE.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433001 13f79535-47bb-0310-9956-ffa450edef68

11 years agoThe pool and db object to be used should be created before trying to acquire a driver...
Daniel Gruno [Mon, 14 Jan 2013 12:04:38 +0000 (12:04 +0000)]
The pool and db object to be used should be created before trying to acquire a driver handle.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432892 13f79535-47bb-0310-9956-ffa450edef68

11 years agorevert r1432881 - t'wasn't a bug after all.
Daniel Gruno [Mon, 14 Jan 2013 11:42:28 +0000 (11:42 +0000)]
revert r1432881 - t'wasn't a bug after all.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432886 13f79535-47bb-0310-9956-ffa450edef68

11 years agomod_lua/dbd: Only 2 arguments are passed, so let's tell Lua to only return 2, not 3.
Daniel Gruno [Mon, 14 Jan 2013 11:37:09 +0000 (11:37 +0000)]
mod_lua/dbd: Only 2 arguments are passed, so let's tell Lua to only return 2, not 3.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432881 13f79535-47bb-0310-9956-ffa450edef68

11 years agoUpdates.
Lucien Gentis [Sat, 12 Jan 2013 17:41:33 +0000 (17:41 +0000)]
Updates.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432479 13f79535-47bb-0310-9956-ffa450edef68

11 years agoadd default
Eric Covener [Sat, 12 Jan 2013 15:05:51 +0000 (15:05 +0000)]
add default

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432444 13f79535-47bb-0310-9956-ffa450edef68

11 years agoShamelessly add some people to the contributors list (I hope they're okay with that)
Daniel Gruno [Sat, 12 Jan 2013 13:25:40 +0000 (13:25 +0000)]
Shamelessly add some people to the contributors list (I hope they're okay with that)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432422 13f79535-47bb-0310-9956-ffa450edef68

11 years agoThis stuff is now in trunk.
Daniel Gruno [Sat, 12 Jan 2013 13:24:15 +0000 (13:24 +0000)]
This stuff is now in trunk.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432421 13f79535-47bb-0310-9956-ffa450edef68

11 years agoDebian doesn't like pushing statically defined functions into tables, so we'll declar...
Daniel Gruno [Sat, 12 Jan 2013 12:58:31 +0000 (12:58 +0000)]
Debian doesn't like pushing statically defined functions into tables, so we'll declare them in lua_dbd.h and just make them regular functions instead.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432418 13f79535-47bb-0310-9956-ffa450edef68

11 years agomod_ssl: Allow the SSLUserName to be used to control the username passed
Graham Leggett [Fri, 11 Jan 2013 22:53:50 +0000 (22:53 +0000)]
mod_ssl: Allow the SSLUserName to be used to control the username passed
by the FakeBasicAuth option. PR52616.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432322 13f79535-47bb-0310-9956-ffa450edef68

11 years agoFix a typo.
Graham Leggett [Fri, 11 Jan 2013 20:23:59 +0000 (20:23 +0000)]
Fix a typo.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1432265 13f79535-47bb-0310-9956-ffa450edef68

11 years agoSince functions are now pushed solely in lua_dbd.c, there's no need to declare them...
Daniel Gruno [Fri, 11 Jan 2013 08:13:28 +0000 (08:13 +0000)]
Since functions are now pushed solely in lua_dbd.c, there's no need to declare them in lua_dbd.h
Hopefully, this solves the Windows compiler issues.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1431930 13f79535-47bb-0310-9956-ffa450edef68

11 years agoinform compiler where mod_dbd.h is located
Gregg Lewis Smith [Thu, 10 Jan 2013 21:53:50 +0000 (21:53 +0000)]
inform compiler where mod_dbd.h is located

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1431681 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdded include path for mod_dbd.h.
Guenter Knauf [Thu, 10 Jan 2013 12:41:13 +0000 (12:41 +0000)]
Added include path for mod_dbd.h.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1431322 13f79535-47bb-0310-9956-ffa450edef68

11 years agoCodeWarrior workaround for lua_dbd
Daniel Gruno [Thu, 10 Jan 2013 09:47:30 +0000 (09:47 +0000)]
CodeWarrior workaround for lua_dbd

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1431236 13f79535-47bb-0310-9956-ffa450edef68

11 years agoFix mistaken reset of num_free with restored shm
Jim Jagielski [Wed, 9 Jan 2013 14:14:42 +0000 (14:14 +0000)]
Fix mistaken reset of num_free with restored shm

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430869 13f79535-47bb-0310-9956-ffa450edef68

11 years agothese are in 2.4.x
Jim Jagielski [Wed, 9 Jan 2013 12:26:34 +0000 (12:26 +0000)]
these are in 2.4.x

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430821 13f79535-47bb-0310-9956-ffa450edef68

11 years agoxforms.
Rainer Jung [Wed, 9 Jan 2013 12:11:33 +0000 (12:11 +0000)]
xforms.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430815 13f79535-47bb-0310-9956-ffa450edef68

11 years agoRemove reference to RequireNone, which is no longer
Rainer Jung [Wed, 9 Jan 2013 12:10:52 +0000 (12:10 +0000)]
Remove reference to RequireNone, which is no longer
used in the example since r1341749.

Add some hopefully interesting other explanation
instead.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430814 13f79535-47bb-0310-9956-ffa450edef68

11 years agoNothing to see here. (Fixes annoying indentation in doc example.)
Rich Bowen [Wed, 9 Jan 2013 03:16:14 +0000 (03:16 +0000)]
Nothing to see here. (Fixes annoying indentation in doc example.)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430669 13f79535-47bb-0310-9956-ffa450edef68

11 years agoRebuild - includes the update to the copyright date.
Rich Bowen [Wed, 9 Jan 2013 02:09:48 +0000 (02:09 +0000)]
Rebuild - includes the update to the copyright date.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430659 13f79535-47bb-0310-9956-ffa450edef68

11 years agoFix xml validation
Rich Bowen [Wed, 9 Jan 2013 01:56:35 +0000 (01:56 +0000)]
Fix xml validation

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430656 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdds a seealso for the logging doc.
Rich Bowen [Wed, 9 Jan 2013 01:52:50 +0000 (01:52 +0000)]
Adds a seealso for the logging doc.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430655 13f79535-47bb-0310-9956-ffa450edef68

11 years agoNaming
Jim Jagielski [Tue, 8 Jan 2013 22:24:10 +0000 (22:24 +0000)]
Naming

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430575 13f79535-47bb-0310-9956-ffa450edef68

11 years agoRephrasing a bit of the database docs for mod_lua
Daniel Gruno [Tue, 8 Jan 2013 19:55:34 +0000 (19:55 +0000)]
Rephrasing a bit of the database docs for mod_lua

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430472 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdd lua_dbd features to CHANGES
Daniel Gruno [Tue, 8 Jan 2013 13:41:32 +0000 (13:41 +0000)]
Add lua_dbd features to CHANGES

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430279 13f79535-47bb-0310-9956-ffa450edef68

11 years agoFix typo in comment, as per bugzilla #54388
Daniel Gruno [Tue, 8 Jan 2013 13:05:53 +0000 (13:05 +0000)]
Fix typo in comment, as per bugzilla #54388

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430265 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdd database features for mod_lua (apr_dbd + mod_dbd).
Daniel Gruno [Tue, 8 Jan 2013 11:42:50 +0000 (11:42 +0000)]
Add database features for mod_lua (apr_dbd + mod_dbd).
See documentation update for API and examples.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430225 13f79535-47bb-0310-9956-ffa450edef68

11 years agorpm spec: Ensure we are prioritised above mod_ssl on Redhat derivatives.
Graham Leggett [Sun, 6 Jan 2013 23:17:33 +0000 (23:17 +0000)]
rpm spec: Ensure we are prioritised above mod_ssl on Redhat derivatives.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429610 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAccording to my testing, one special case of 'log_xlate_error', i.e. EES_INCOMPLETE_CHAR,
Christophe Jaillet [Sun, 6 Jan 2013 19:48:40 +0000 (19:48 +0000)]
According to my testing, one special case of 'log_xlate_error', i.e. EES_INCOMPLETE_CHAR,
 is 13x (!!!) faster with the use 'ap_bin2hex' instead of apr_snprintf(..., "%02X" + srlen for each character.

Output is *not* exactly the same. It was uppercase, now it is lowercase.
It is just for logging, so I don't think it is an issue.
Should it be, a call to ap_strtoupper can be added.

So sad it is just for logging in case of error... no real speedup to be expected in real life .

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429582 13f79535-47bb-0310-9956-ffa450edef68

11 years agoUse ap_bin2hex instead of sprintf(..., "%02x". It gives the same output and is faster.
Christophe Jaillet [Sun, 6 Jan 2013 18:08:46 +0000 (18:08 +0000)]
Use ap_bin2hex instead of sprintf(..., "%02x". It gives the same output and is faster.

No real speedup should be achieved on production machine, because this is done
only for characters that need to be escaped.
However, this will close PR 50919.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429564 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAccording top my testing 'socache_mc_id2key' is 6x faster with the use 'ap_bin2hex...
Christophe Jaillet [Sun, 6 Jan 2013 17:52:43 +0000 (17:52 +0000)]
According top my testing 'socache_mc_id2key' is 6x faster with the use 'ap_bin2hex' instead of
apr_snprintf(..., "%02X" for each character.
Output is *not* exactly the same. It was uppercase, now it is lowercase.

According to my understanding, this is not an issue.
Should it be, a call to ap_str_toupper should be added.

The speedup would be less, but still significant.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429561 13f79535-47bb-0310-9956-ffa450edef68

11 years agoSecurity notes about SQL injection.
Vincent Deffontaines [Sun, 6 Jan 2013 17:52:43 +0000 (17:52 +0000)]
Security notes about SQL injection.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429560 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAccording top my testing 'SSL_SESSION_id2sz' is 4x faster with the use 'ap_bin2hex...
Christophe Jaillet [Sun, 6 Jan 2013 17:40:13 +0000 (17:40 +0000)]
According top my testing 'SSL_SESSION_id2sz' is 4x faster with the use 'ap_bin2hex' instead of
apr_snprintf(..., "%02X" for each character.
Output is the same.

I have left the uppercase conversion, because I'm unsure if it is usefull or not.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429559 13f79535-47bb-0310-9956-ffa450edef68

11 years agoUpdates.
Lucien Gentis [Sun, 6 Jan 2013 15:58:38 +0000 (15:58 +0000)]
Updates.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429545 13f79535-47bb-0310-9956-ffa450edef68

11 years agoHappy new year.
Rainer Jung [Sat, 5 Jan 2013 18:15:07 +0000 (18:15 +0000)]
Happy new year.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429349 13f79535-47bb-0310-9956-ffa450edef68

11 years agoUpdate.
Lucien Gentis [Sat, 5 Jan 2013 17:09:23 +0000 (17:09 +0000)]
Update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429329 13f79535-47bb-0310-9956-ffa450edef68

11 years agomod_ssl/ab: only use "--static" for pkg-config when explicity requested
Kaspar Brand [Sat, 5 Jan 2013 07:54:15 +0000 (07:54 +0000)]
mod_ssl/ab: only use "--static" for pkg-config when explicity requested
(by adding an "--enable-ssl-staticlib-deps" option to configure)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429228 13f79535-47bb-0310-9956-ffa450edef68

11 years agofix typo: || not |
Stefan Fritsch [Fri, 4 Jan 2013 23:48:15 +0000 (23:48 +0000)]
fix typo: || not |

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429169 13f79535-47bb-0310-9956-ffa450edef68

11 years agoUpdates.
Lucien Gentis [Fri, 4 Jan 2013 16:56:55 +0000 (16:56 +0000)]
Updates.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1428976 13f79535-47bb-0310-9956-ffa450edef68

11 years agonon-existance of byrequests is not an immediate error
Jim Jagielski [Fri, 4 Jan 2013 15:10:21 +0000 (15:10 +0000)]
non-existance of byrequests is not an immediate error

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1428916 13f79535-47bb-0310-9956-ffa450edef68

11 years agoUpdates.
Lucien Gentis [Thu, 3 Jan 2013 18:43:33 +0000 (18:43 +0000)]
Updates.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1428540 13f79535-47bb-0310-9956-ffa450edef68

11 years ago* modules/proxy/mod_proxy_ftp.c (proxy_ftp_handler): Remove
Joe Orton [Thu, 3 Jan 2013 11:09:50 +0000 (11:09 +0000)]
* modules/proxy/mod_proxy_ftp.c (proxy_ftp_handler): Remove
  unnecessary APLOGNO() for trace logging per dev@ discussion.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1428280 13f79535-47bb-0310-9956-ffa450edef68

11 years agoImprove pkg-config usage for mod_ssl/ab:
Kaspar Brand [Thu, 3 Jan 2013 07:23:27 +0000 (07:23 +0000)]
Improve pkg-config usage for mod_ssl/ab:

also use pkg-config for determining the -l flags (and fall back
to a hardcoded default of "-lssl -lcrypto")

add --static to pkg-config invocations, so that libraries for
static linking are also taken into account (PR 54252 - note that
the additional flags will only appear in modules/ssl/modules.mk
and ab_LDFLAGS, so potential side effects are limited)

separate --libs-only-L and --libs-only-other into two invocations
(can't be used concurrently, only the first takes effect)

use --silence-errors where applicable

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1428184 13f79535-47bb-0310-9956-ffa450edef68

11 years agoStupid CodeWarrior compiler cant take vars with struct inits.
Guenter Knauf [Thu, 3 Jan 2013 02:25:23 +0000 (02:25 +0000)]
Stupid CodeWarrior compiler cant take vars with struct inits.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1428145 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdd some caching for password hash validation.
Stefan Fritsch [Tue, 1 Jan 2013 20:16:30 +0000 (20:16 +0000)]
Add some caching for password hash validation.

Password hash functions must be expensive in order to be secure. But
if they have to be re-evaluated for every request, performance
suffers.

As a minimal remedy, cache the most recent result for every
connection. This gives a great performance boost if a web browser
does many requests on the same connection with the same
user+password.  In principle, this may keep the plain text password
around longer than before. But in practice, there won't be much
difference since user+password can already remain in some unused
data bucket for longer than the request duration.

A proper solution still needs to be found for connections from
proxies which may carry requests for many different users.

While it currently only requires the conn_rec, the new
ap_password_validate() function takes username and request_rec to
allow future extensions, like detection of brute-force attempts.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1427548 13f79535-47bb-0310-9956-ffa450edef68

11 years agoremove unneeded include statements
Stefan Fritsch [Tue, 1 Jan 2013 19:50:56 +0000 (19:50 +0000)]
remove unneeded include statements

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1427546 13f79535-47bb-0310-9956-ffa450edef68

11 years agoRemove support for Request-Range header sent by Navigator 2-3 and
Stefan Fritsch [Tue, 1 Jan 2013 17:00:23 +0000 (17:00 +0000)]
Remove support for Request-Range header sent by Navigator 2-3 and
MSIE 3

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1427465 13f79535-47bb-0310-9956-ffa450edef68

11 years agoabort if BIO_new fails due to lack of memory
Stefan Fritsch [Tue, 1 Jan 2013 16:23:28 +0000 (16:23 +0000)]
abort if BIO_new fails due to lack of memory

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1427456 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdding security related information
Vincent Deffontaines [Tue, 1 Jan 2013 11:57:08 +0000 (11:57 +0000)]
Adding security related information

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1427395 13f79535-47bb-0310-9956-ffa450edef68

11 years agosay what I meant to say
Gregg Lewis Smith [Mon, 31 Dec 2012 17:47:46 +0000 (17:47 +0000)]
say what I meant to say

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1427201 13f79535-47bb-0310-9956-ffa450edef68

11 years agochange protocol number parsing in strict mode according to HTTPbis draft
Stefan Fritsch [Sun, 30 Dec 2012 21:24:55 +0000 (21:24 +0000)]
change protocol number parsing in strict mode according to HTTPbis draft

- only accept single digit version components
- don't accept white-space after protocol specification

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426992 13f79535-47bb-0310-9956-ffa450edef68

11 years agoremove comment; empty host headers can happen in proxy requests
Stefan Fritsch [Sun, 30 Dec 2012 20:58:39 +0000 (20:58 +0000)]
remove comment; empty host headers can happen in proxy requests

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426988 13f79535-47bb-0310-9956-ffa450edef68

11 years agoWiden strip pattern to also match MOD_XML2ENC_LDADD.
Rainer Jung [Sun, 30 Dec 2012 19:00:44 +0000 (19:00 +0000)]
Widen strip pattern to also match MOD_XML2ENC_LDADD.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426975 13f79535-47bb-0310-9956-ffa450edef68

11 years agoWhat happened to serf in the IDE builds? For consistency sake
Gregg Lewis Smith [Sun, 30 Dec 2012 17:59:22 +0000 (17:59 +0000)]
What happened to serf in the IDE builds? For consistency sake
with the other optional dependencies, get serf in there too.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426969 13f79535-47bb-0310-9956-ffa450edef68

11 years agoadd log tags missing in r1426877
Stefan Fritsch [Sun, 30 Dec 2012 01:28:17 +0000 (01:28 +0000)]
add log tags missing in r1426877

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426879 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdd an option to enforce stricter HTTP conformance
Stefan Fritsch [Sun, 30 Dec 2012 01:23:24 +0000 (01:23 +0000)]
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.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426877 13f79535-47bb-0310-9956-ffa450edef68

11 years agoFix warning about discarding 'const' qualifier from pointer
Stefan Fritsch [Sat, 29 Dec 2012 22:22:13 +0000 (22:22 +0000)]
Fix warning about discarding 'const' qualifier from pointer

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426850 13f79535-47bb-0310-9956-ffa450edef68

11 years agoCorrectly parse an IPv6 literal host specification in an absolute URL
Stefan Fritsch [Sat, 29 Dec 2012 20:39:49 +0000 (20:39 +0000)]
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().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426827 13f79535-47bb-0310-9956-ffa450edef68

11 years agoextend description of r->hostname
Stefan Fritsch [Sat, 29 Dec 2012 18:37:17 +0000 (18:37 +0000)]
extend description of r->hostname

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426802 13f79535-47bb-0310-9956-ffa450edef68

11 years agoRebuild various transformations.
Rich Bowen [Fri, 28 Dec 2012 18:10:38 +0000 (18:10 +0000)]
Rebuild various transformations.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426602 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdd links to programs docs.
Rich Bowen [Fri, 28 Dec 2012 18:07:57 +0000 (18:07 +0000)]
Add links to programs docs.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426599 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdd links to the relevant docs.
Rich Bowen [Fri, 28 Dec 2012 18:03:47 +0000 (18:03 +0000)]
Add links to the relevant docs.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426597 13f79535-47bb-0310-9956-ffa450edef68

11 years agoAdd notes about compiling from Unix sources
Gregg Lewis Smith [Wed, 26 Dec 2012 17:32:31 +0000 (17:32 +0000)]
Add notes about compiling from Unix sources

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425975 13f79535-47bb-0310-9956-ffa450edef68

11 years agotransformations
Kaspar Brand [Wed, 26 Dec 2012 10:59:31 +0000 (10:59 +0000)]
transformations

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425876 13f79535-47bb-0310-9956-ffa450edef68

11 years agomod_ssl: add support for subjectAltName-based host name checking in proxy mode
Kaspar Brand [Wed, 26 Dec 2012 10:54:54 +0000 (10:54 +0000)]
mod_ssl: add support for subjectAltName-based host name checking in proxy mode
(PR 54030)

factor out code from ssl_engine_init.c:ssl_check_public_cert()
to ssl_util_ssl.c:SSL_X509_match_name()

introduce new SSLProxyCheckPeerName directive, which should eventually
obsolete SSLProxyCheckPeerCN

ssl_engine_io.c:ssl_io_filter_handshake(): avoid code duplication
when aborting with HTTP_BAD_GATEWAY

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425874 13f79535-47bb-0310-9956-ffa450edef68