Re: Advanced Mass Hosting Module

2003-03-17 Thread Thomas Eibner

On Sat, Mar 15, 2003 at 07:45:00PM -0800, Ian Holsman wrote:
 I was looking at the code, and I think we could acheive alot if we replaced 
 the calls
 to the vhost-parsing code on
 http://lxr.webperf.org/source.cgi/server/protocol.c#L980 
 http://lxr.webperf.org/source.cgi/server/connection.c#L203
 
 with 2 hooks. this would give the added benefit of moving the name-based 
 virtual hosting
 into modules/http where it belongs.

Sounds like a very good idea Ian! Does anyone else have comments about
moving virtualhosts out from the core and into a module?
 
 we would still have a problem creating the server configs on the fly, but 
 that is a smaller problem
 which the module writer could attempt.
 


Re: Advanced Mass Hosting Module

2003-03-14 Thread Thomas Eibner

On Thu, Mar 13, 2003 at 08:27:30PM +0900, Nathan Ollerenshaw wrote:
 Resending this to this list as I got no response on users list.
 
 Currently, we are using flat config files generated by our website
 provisioning software to support our mass hosted customers. The reason
 for doing it this way, and not using the mod_vhost_alias module is
 because we need to be able to turn on/off CGI, PHP, Java, shtml etc on
 a per vhost basis. We need the power that having a distinct
 VirtualHost directive for each site gives you.
 
 Is there a better way?

I once started a project to do this from a database, I eventually stopped
as I couldn't figure out a nice way to enable/disable php,cgi,whatever on
demand. Serving virtualhosts from documentroots you pull out of a database
is no big deal.



Re: merging httpd-pop3 into httpd-2.0?

2003-01-26 Thread Thomas Eibner
On Sun, Jan 26, 2003 at 08:31:14AM +0100, Harrie Hazewinkel wrote:
 
 On Sunday, January 26, 2003, at 12:18 AM, Erik Abele wrote:
 Well, than let's move it in. A quick overview of the last mails shows 
 the following votes:
 
 justin +0 modules/pop3
 jim +1 modules/experimental
 bills -0 !modules/pop3
 willrowe -0 modules/experimental / +0 modules/pop / +1 for it's 
 current repository
 
 plus some positive votes from Daniel Lopez, Thomas Eibner, Harrie 
 Hazwinkel and Chris Taylor.
 
 Sorry, but I am positive about this module, but negative (-1) to fold
 it in the main distribution. Reasons see other email of me.

It doesn't matter in the big picture, but I believe I had negative
opinion about folding it into httpd-2.0 ;)

Unless someone actually makes a distribution of httpd where pop3 is
built-in I don't see it taking off anyway. Once it is folded into
httpd I'm not sure I see much more work happening on it again. The
few times I had a question or a patch the pop3 list has worked fine.
If it's exposure for the module why not whip up a webpage and someone
make a binary with only auth and pop3 (If noone of the developers are
interested in this I'm sure Gunther Knauf would build one). As far as
other exposure I know Rich Bowen showed off what the pop3 module could
do at one of his talks last year.

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/
  !(C)http://copywrong.dk/  http://apachegallery.dk/
  Putting the HEST in .COM http://www.hestdesign.com/



Re: merging httpd-pop3 into httpd-2.0?

2003-01-23 Thread Thomas Eibner

On Thu, Jan 23, 2003 at 10:22:16AM -0500, Ben Hyde wrote:
 Moving to closure on the decision - my sense is that this plan is 
 acceptable.
 
 Now we can transition to doing the deed.  Anybody got enough of an itch 
 around that code to rescue it?
 
 I'll advocate retiring it otherwise.  - ben

Why would you want to retire it? It's an excellent example of what you
can achieve (as a protocol module) with Apache 2.0 as the base. 
I tried extending it a few months back to support the STARTSSL command
and it would have been pretty straightforward had I had any clue on how
to initiate the ssl handshake (I might have gotten it right, but I had
no client to test it with). 
my $cent = 2;
/Thomas




Re: merging httpd-pop3 into httpd-2.0?

2003-01-23 Thread Thomas Eibner

On Thu, Jan 23, 2003 at 11:10:11AM -0500, Bill Stoddard wrote:
 Thomas Eibner wrote:
 
 On Thu, Jan 23, 2003 at 10:22:16AM -0500, Ben Hyde wrote:
  
 
 Moving to closure on the decision - my sense is that this plan is 
 acceptable.
 
 Now we can transition to doing the deed.  Anybody got enough of an itch 
 around that code to rescue it?
 
 I'll advocate retiring it otherwise.  - ben

 
 
 Why would you want to retire it? It's an excellent example of what you
 can achieve (as a protocol module) with Apache 2.0 as the base. 
 
 httpd != pop3

httpd != echo, but the echo protocol module is still in there :-)

And that is a reason to keep it where it is, in it's own httpd-pop3
repository. Of course it also depends what Ben meant by retiring,
but to me it almost sounded like getting rid of it rather than putting
it in the httpd-2.0 repo.
 



Re: url finishing by / are declined by cache

2002-10-16 Thread Thomas Eibner

On Wed, Oct 16, 2002 at 11:20:07AM -0400, Bill Stoddard wrote:
  Hi,
 
  Why url finishing by / are not cacheable ?
 
 muddled thinking ? :-) I was unsure how to handle caching default index
 pages but I see no reason why we can't just delete this check.

Not for negotiation reasons? (I seem to remember discussions where
that was brought up).

 
 
  /* DECLINE urls ending in / ??? EGP: why? */
 
  if (url[urllen-1] == '/') {
  return DECLINED;
 
  }

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/
  !(C)http://copywrong.dk/  http://apachegallery.dk/
  Putting the HEST in .COM http://www.hestdesign.com/



Re: stable 2.0 trees

2002-10-16 Thread Thomas Eibner

On Wed, Oct 16, 2002 at 08:32:34PM +0200, G?nter Knauf wrote:
 Hi,
 
  William A. Rowe, Jr. [EMAIL PROTECTED] writes:
 
  First, I'm pretty happy with what is going on in 2.0 HEAD now.  I
  don't think MMN is changed gratuitously, I don't think the code gets
  destabilized a whole lot on a regular basis, I think that having some
  aspects of the config change (i.e., the auth issue) change at this
  point in the =2.0 lifetime is not completely unreasonable (scripts
  can certainly help admins).  I think we're still at a point where
  changing MMN is reasonable under certain conditions.
 changing the MMN isnt the worse thing, but doing so without any documentation is!
 What I expect is a list that shows for every MMN change a short description why it 
was changed or better what has changed in the sources, and if it affects third-party 
modules and which, f.e. something like that:
 
 20020903 : added new parameter SEND_OPT in function xyz(), NULL could be passed in; 
affects filter modules.
 
 if something like that already exists please point me to it...

Point me in that direction too. It's a very good idea Guenter (if there
is no such list already).

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/
  !(C)http://copywrong.dk/  http://apachegallery.dk/
  Putting the HEST in .COM http://www.hestdesign.com/



Re: stupid question?

2002-09-24 Thread Thomas Eibner

On Tue, Sep 24, 2002 at 03:49:40PM +0200, Günter Knauf wrote:
 Hi Thomas,
  are the server-side vars generated by the server or only echoed vars
  which where provided by the browser??
  specially REQUEST_URI is of interest for me for security purposes in
  scripts, so is it generated from Apache self or can it be faked by the
  client?
 
  In 1.3 it looks like it's set from the original request, but to be able
  to fake it they can't call your script (right?)
 f.e. I have a perl mailscript which should only accept formdata from a form which 
was served by my host, so I want to check in the script if REQUEST_URI is from my own 
host or probably comes from a locally stored and modified form...
 so any other ideas what I can check to be 100% sure that the form was served by my 
server?

Probably not the right list for this, but you can't really be 100% sure
that the form is being submitted from your server. But what you are
looking for is really the referer. (still not 100% sure though)

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/
  !(C)http://copywrong.dk/  http://apachegallery.dk/
  Putting the HEST in .COM http://www.hestdesign.com/



Re: stupid question?

2002-09-12 Thread Thomas Eibner

On Thu, Sep 12, 2002 at 10:31:50PM +0200, Günter Knauf wrote:
 Hi,
 probably a stupid question, but I'm too lazy to look through the source; 
 and I'm sure many of you here can answere this question at once:
 are the server-side vars generated by the server or only echoed vars which where 
provided by the browser??
 specially REQUEST_URI is of interest for me for security purposes in scripts, so is 
it generated from Apache self or can it be faked by the client?

In 1.3 it looks like it's set from the original request, but to be able
to fake it they can't call your script (right?)

./src/main/util_script.c:ap_table_setn(e, REQUEST_URI, original_uri(r));

static char *original_uri(request_rec *r)
{
char *first, *last;

if (r-the_request == NULL) {
return (char *) ap_pcalloc(r-pool, 1);
}

first = r-the_request; /* use the request-line */

while (*first  !ap_isspace(*first)) {
++first; /* skip over the method */
}
while (ap_isspace(*first)) {
++first;/*   and the space(s)   */
}

last = first;
while (*last  !ap_isspace(*last)) {
++last; /* end at next whitespace */
}

return ap_pstrndup(r-pool, first, last - first);
}

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/
  !(C)http://copywrong.dk/  http://apachegallery.dk/
  Putting the HEST in .COM http://www.hestdesign.com/



Re: Thread-unsafe libraries in httpd-2.0

2002-08-16 Thread Thomas Eibner

On Fri, Aug 16, 2002 at 11:41:53AM -0400, Jim Jagielski wrote:
 William A. Rowe, Jr. wrote:
  
  At 10:21 AM 8/16/2002, Bill Stoddard wrote:
  A remarkable number of software developers are really ignorant about
  programming in a threaded environment and I know from first hand experience
  with newbie software developers that it is really difficult for some people
  to grok that even a one instruction timing window where two threads can
  interfere with each other cannot be allowed. Anything we, the httpd
  developers, can do to help educate folks (even if it is just pointing them
  to good doc on writing threaded applications) is in our best interest.
  
  +1 on documenting thread safety issues, for their benefit and our
  own (when folks submit patches or modules for inclusion in httpd!)
  
 
 I think that the doc/pages that Rasmus started is an excellent 1st
 step.

Could anyone recommend some reading on threading issues for people 
without much/any knowledge about threading? (Books/articles/etc)

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/
  !(C)http://copywrong.dk/  http://apachegallery.dk/
  Putting the HEST in .COM http://www.hestdesign.com/



Re: Rewriting incoming outgoing headers

2002-07-19 Thread Thomas Eibner

On Fri, Jul 19, 2002 at 07:56:58AM +0200, [EMAIL PROTECTED] wrote:
 Hi all,
 
 First of all, here is the Required Disclaimer: Hi everybody, I am 
 insane and new to the list. I am also emotionally very vulnerable and 
 can not handle rejection very well... :-)
 
 Ok, now this is out of the way, I would greatly value your thoughts and 
 opinions about the following:
 
 Due to an interesting (which in this case is political correctese
 for stupid) networking situation at a customer I am experiencing
 various problems with incoming and outgoing HTTP headers. There are so
 many forward and reverse proxies all over the place that all sorts
 of stuff is going wrong.
 
 Therefore, I am in dire need of an HTTP header rewriting capability
 that can add, delete *and* rewrite HTTP headers just after coming into
 the server and just before going out to the browser.

for 1.3 at least:

1) post read request phase
2) fixup phase

And why can't you do that with a simple custom written module?

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/
  !(C)http://copywrong.dk/  http://apachegallery.dk/
  Putting the HEST in .COM http://www.hestdesign.com/



Re: Port 80 vs 8080 when not SU.

2002-07-10 Thread Thomas Eibner

On Wed, Jul 10, 2002 at 12:30:35PM -0700, Joshua Slive wrote:
 As I've said, this cute feature is confusing for newbies and irritating
 for some legitimate users.  The only people it helps are people who
 install apache often for testing, and these people should know to use
 --port on the configure command line.

Yeah, or have a seperate config file they use specifically for their
testing. 

-- 
  Thomas Eibner http://thomas.eibner.dk/



Re: Header fields for canned error pages

2002-07-02 Thread Thomas Eibner

On Tue, Jul 02, 2002 at 03:05:25PM -0400, Rodent of Unusual Size wrote:
 [1.3]
 
 H'm.  Suppose we have a globally-scoped
 
 Header set X-Foo Bar
 ErrorDocument 404 /cgi-bin/my404
 
 If we request a nonexistent document, we'll get the output from
 the 'my404' script, and the 'X-Foo' field will have been added
 to the response header.
 
 However, if we *don't* use a custom ErrorDocument but let
 http_protocol.c issue the default 404 page, the field is
 *not* added to the response header.
 
 Is this a bug?  I'm not sure either way..

Isn't it only because the subrequest that serves the error document for
the 404 is a cgi script? Have you tried with a regular file and seen
the same header being set?

-- 
  Thomas Eibner 



Re: [patch mod_example.c] various fixes, mostly docs

2002-07-01 Thread Thomas Eibner

On Mon, Jul 01, 2002 at 11:49:03PM +0800, Stas Bekman wrote:
 a bunch of mod_example improvements, most docs:
 - added the missing header_parser_handler
 - correct some copy-n-paste errors
 - place XXX: where the doc was wrong but I wasn't sure what's the right 
 thing to replace with, so those who know can easily spot what should be 
 fixed.
 
 of course this module requires much more work.

I hear you on that point, anyone interested in a little hacking session
on mod_example?

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/
  !(C)http://copywrong.dk/  http://apachegallery.dk/
  Putting the HEST in .COM http://www.hestdesign.com/



Re: [1.3] Proxy fixes and FWD: Re: [apache-modules] Setting bytes_sent in Request Record while generating all headers by myself in Apache 1.3]

2002-05-29 Thread Thomas Eibner

On Wed, May 29, 2002 at 06:47:20PM +0200, Graham Leggett wrote:
 Thomas Eibner wrote:
 
  Anyone looked at the remaining open bugs in 1.3 and might want to include
  this patch (and bug)?
 
 Only if someone can verify that this patch actually does anything. The
 proxy has been largely rewritten since then, so this bug might not still
 be outstanding.
 
 There is a release coming out in another day or two, I am stuck offline
 - can someone take a look at this fix and see if it works...?

  Would it also be possible to have mod_proxy for 1.3 set the same
  X-Forwarded-* headers as the 2.0 proxy does? Need patches for this?
 
 I thought v1.3.24 already did this - don't remember if I added it to
 v1.3 as well, I am sure I did.

Looking at apache-1.3 in cvs VS httpd-2.0 there seems to be a few
changes, and the X-Forwarded-* headers are some of them. I have a
patch ready if needed (with what I believe are your comments in
it).

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/
  !(C)http://copywrong.dk/  http://apachegallery.dk/
  Putting the HEST in .COM http://www.hestdesign.com/



Re: [1.3] Proxy fixes and FWD: Re: [apache-modules] Setting bytes_sent in Request Record while generating all headers by myself in Apache 1.3]

2002-05-29 Thread Thomas Eibner

On Wed, May 29, 2002 at 07:10:25PM +0200, Graham Leggett wrote:
 Thomas Eibner wrote:
 
  Looking at apache-1.3 in cvs VS httpd-2.0 there seems to be a few
  changes, and the X-Forwarded-* headers are some of them. I have a
  patch ready if needed (with what I believe are your comments in
  it).
 
 Just checked - the X-Forwarded-For is definitely there in v1.3. Dunno
 about the send_bytes fix. Can someone check for me?

Ah yes, X-Forwarded-For is there, but not the two others there is in
2.0 (X-Forwarded-Server and X-Forwared-Host) I read in the source that
someone thinks it needs to go into the Via header instead. And as I can
read from the source, X-Forwarded-For is only sent when it's a reverse
proxy request in 2.0, and always sent in 1.3.

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/
  !(C)http://copywrong.dk/  http://apachegallery.dk/
  Putting the HEST in .COM http://www.hestdesign.com/



Re: [1.3] Proxy fixes and FWD: Re: [apache-modules] Setting bytes_sent in Request Record while generating all headers by myself in Apache 1.3]

2002-05-29 Thread Thomas Eibner

On Wed, May 29, 2002 at 07:20:17PM +0200, Graham Leggett wrote:
 Thomas Eibner wrote:
 
  Ah yes, X-Forwarded-For is there, but not the two others there is in
  2.0 (X-Forwarded-Server and X-Forwared-Host) I read in the source that
  someone thinks it needs to go into the Via header instead. And as I can
  read from the source, X-Forwarded-For is only sent when it's a reverse
  proxy request in 2.0, and always sent in 1.3.
 
 Oh yes... I remember now (memory rusty). If you can get a patch in
 before tomorrow, should be cool :)

Inline patch here, but I'm wondering if you want the X-Forwarded-For
header to be stuck inside the conditional too? 

Index: proxy_http.c
===
RCS file: /home/cvspublic/apache-1.3/src/modules/proxy/proxy_http.c,v
retrieving revision 1.98
diff -u -r1.98 proxy_http.c
--- proxy_http.c21 Apr 2002 21:16:39 -  1.98
+++ proxy_http.c29 May 2002 17:04:38 -
 -350,6 +350,20 
  * where the original request came from.
  */
 ap_table_mergen(req_hdrs, X-Forwarded-For, r-connection-remote_ip);
+if (r-proxyreq == PROXY_PASS) {
+const char *buf;
+/* Add X-Forwarded-Host: so that upstream knows what the
+ * original request hostname was.
+ */
+if ((buf - ap_table_get(r-headers_in, Host))) {
+ap_table_mergen(req_hdrs, X-Forwarded-Host, buf);
+}
+/* Add X-Forwarded-Server: so that upstream knows what the
+ * name of this proxy server is (if there are more than one)
+ * XXX: This duplicates Via: - do we strictly need it?
+ */
+ap_table_mergen(req_hdrs, X-Forwarded-Server, r-server_hostname);
+} 
 
 /* we don't yet support keepalives - but we will soon, I promise! */
 ap_table_set(req_hdrs, Connection, close);


-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/
  !(C)http://copywrong.dk/  http://apachegallery.dk/
  Putting the HEST in .COM http://www.hestdesign.com/



Re: [1.3] Proxy fixes and FWD: Re: [apache-modules] Setting bytes_sent in Request Record while generating all headers by myself in Apache 1.3]

2002-05-29 Thread Thomas Eibner

On Wed, May 29, 2002 at 07:44:16PM +0200, Graham Leggett wrote:
 Thomas Eibner wrote:
 
  Inline patch here, but I'm wondering if you want the X-Forwarded-For
  header to be stuck inside the conditional too?
 
 I think it should be... will sort this out later tonight or first thing
 tomorrow, have to leave the internet cafe now to fetch someone.

Good, there was a small mistake in the patch anyway. I'll setup a
test for it later so I can see if it actually works (doh).

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/
  !(C)http://copywrong.dk/  http://apachegallery.dk/
  Putting the HEST in .COM http://www.hestdesign.com/



Re: [1.3] Proxy fixes and FWD: Re: [apache-modules] Setting bytes_sent in Request Record while generating all headers by myself in Apache 1.3]

2002-05-29 Thread Thomas Eibner

On Wed, May 29, 2002 at 02:02:53PM -0400, Greg Marr wrote:
 At 01:30 PM 05/29/2002, Thomas Eibner wrote:
 Index: proxy_http.c
 ===
 RCS file: /home/cvspublic/apache-1.3/src/modules/proxy/proxy_http.c,v
 retrieving revision 1.98
 diff -u -r1.98 proxy_http.c
 --- proxy_http.c21 Apr 2002 21:16:39 -  1.98
 +++ proxy_http.c29 May 2002 17:04:38 -
  -350,6 +350,20 
* where the original request came from.
*/
   ap_table_mergen(req_hdrs, X-Forwarded-For, 
  r-connection-remote_ip);
 +if (r-proxyreq == PROXY_PASS) {
 +const char *buf;
 +/* Add X-Forwarded-Host: so that upstream knows what the
 + * original request hostname was.
 + */
 +if ((buf - ap_table_get(r-headers_in, Host))) {
 
 I think this should be buf = instead of buf -.

Yup, and:

+ap_table_mergen(req_hdrs, X-Forwarded-Server, r-server_hostname

Should be r-server-server_hostname too.

But it seems that getting the Host at this point is already to late.
buf contains the remote hostname here already.

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/
  !(C)http://copywrong.dk/  http://apachegallery.dk/
  Putting the HEST in .COM http://www.hestdesign.com/



Re: [1.3] Proxy fixes and FWD: Re: [apache-modules] Setting bytes_sent in Request Record while generating all headers by myself in Apache 1.3]

2002-05-29 Thread Thomas Eibner

On Wed, May 29, 2002 at 08:18:53PM +0200, Thomas Eibner wrote:
 On Wed, May 29, 2002 at 02:02:53PM -0400, Greg Marr wrote:
  At 01:30 PM 05/29/2002, Thomas Eibner wrote:
  Index: proxy_http.c
  ===
  RCS file: /home/cvspublic/apache-1.3/src/modules/proxy/proxy_http.c,v
  retrieving revision 1.98
  diff -u -r1.98 proxy_http.c
  --- proxy_http.c21 Apr 2002 21:16:39 -  1.98
  +++ proxy_http.c29 May 2002 17:04:38 -
   -350,6 +350,20 
 * where the original request came from.
 */
ap_table_mergen(req_hdrs, X-Forwarded-For, 
   r-connection-remote_ip);
  +if (r-proxyreq == PROXY_PASS) {
  +const char *buf;
  +/* Add X-Forwarded-Host: so that upstream knows what the
  + * original request hostname was.
  + */
  +if ((buf - ap_table_get(r-headers_in, Host))) {
  
  I think this should be buf = instead of buf -.
 
 Yup, and:
 
 +ap_table_mergen(req_hdrs, X-Forwarded-Server, r-server_hostname
 
 Should be r-server-server_hostname too.
 
 But it seems that getting the Host at this point is already to late.
 buf contains the remote hostname here already.

Which was fixed by the s/-/=/, thanks Greg.

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/
  !(C)http://copywrong.dk/  http://apachegallery.dk/
  Putting the HEST in .COM http://www.hestdesign.com/



Re: [1.3] Proxy fixes and FWD: Re: [apache-modules] Setting bytes_sent in Request Record while generating all headers by myself in Apache 1.3]

2002-05-29 Thread Thomas Eibner

On Wed, May 29, 2002 at 10:44:16PM +0200, Martin Kraemer wrote:
 Yes, the patch was correct (IMHO) and yes, I committed this one.
 
 About the X-Forwarded-* stuff: It's non-standard anyway (you can add
 any X-whatever header and still be RFC2616 compliant) so I'd rather
 not see it in 1.3 now (maybe in the next release ;-)

My only reasoning for wanting it in was that it's the way it works in
mod_proxy in 2.0.

 I've seen proxies like squid hang because of nonstandard headers
 (proxy-connection: keep-alive) so I am not very fond of polluting the
 header namespace with more non-standard cruft.

Not good.

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/
  !(C)http://copywrong.dk/  http://apachegallery.dk/
  Putting the HEST in .COM http://www.hestdesign.com/



Re: Internal redirection without a HTTP redirection

2002-05-21 Thread Thomas Eibner

On Tue, May 21, 2002 at 03:25:09PM +0200, Bertrand Fritsch wrote:
 Hi,
 
 Is it possible to forward a request to another HTTP server without using the
 HTTP redirection codes (30x)?
 I would like that Apache connects to another server, sends it the request
 and waits for the response before returning it to the user agent.
 How can I do this?

mod_proxy

-- 
  Thomas Eibner http://thomas.eibner.dk/



Re: Apache History Project - Call for comments

2002-05-15 Thread Thomas Eibner

On Wed, May 15, 2002 at 08:56:38AM -0400, Ben Hyde wrote:
 This comes up from time to time.  Somebody measures something; bugs
 submitted, bugs fixes, lines written, commits made, documents written,
 mails send, bylaws written, meetings attended, email threads started,
 email threads ended, uses of the word 'bucket'...
 
 When it has come up before I have written variations of the following.
 Try not to take this as an attack on the volunteer or the messenger
 but ...
 
 I have very strong objections to nieve attempts to reduce the
 contributions made by various individuals into 'objective' scores and
 'leader boards'.

 Projects thrive when diverse and complementary skills are brought
 together in a way to avoids rivalry.  
 
 Skills are complementary when their measures are orthogonal.  Often they
 are so orthogonal that one contributor couldn't for the love nor money fill
 the role another person is playing.  I certainly could never fill
 Doug's shoes; he's a doer.
 
 In such an environment measures that are easily collected are certain to
 be seriously misleading and can trivially leave feelings hurt and create
 contests that lead to deadly disputes.

I agree, what I was more interested in was actually the sheer volume of
the mailinglist archive. These statistics weren't created for someone to
be offened and they aren't going generated on a regular basis anyway.
This was not an attempt to degrade anyone's effort on the Apache httpd
list. 

 It is extremely hard to get people to remain detached about these things.

Very true.

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/
  !(C)http://copywrong.dk/  http://apachegallery.dk/
  Putting the HEST in .COM http://www.hestdesign.com/



Re: Apache History Project - Call for comments

2002-05-15 Thread Thomas Eibner

On Wed, May 15, 2002 at 09:33:00AM -0400, Jim Jagielski wrote:
 Also useful, I think, would be a description of how the actual
 coding environment changed, from people submitting patches and one
 person being responsible for folding them into the code, the
 3 +1s required for a patch to be included, review-then-commit
 vs. commit-then-review, etc...

Very useful, adding that to our notes. Thanks.

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/



Re: Apache History Project - Call for comments

2002-05-14 Thread Thomas Eibner

On Sat, May 11, 2002 at 07:24:22PM +0100, Tony Finch wrote:
 On Sat, May 11, 2002 at 09:23:58AM -0700, Aaron Bannert wrote:
  On Sat, May 11, 2002 at 12:16:48PM -0400, Jim Jagielski wrote:
   
   +1. I think it's a great idea... I'd like to propose it as an
   ASF (sub)project.
  
  +1 from me too.
 
 +1

So how do we get anything rolling? Rich and I have cooked up what we see
as an initial roadmap for the project:

General History of Apache
  * Before Apache
  * Why Apache
  * Initial Development Team
  * How Apache became one of the most successful OSS projects to date

Apache httpd Release timeline 
  * Release Date
  * Changelog / Release notes
  * Tarball
  * Usage statistics
  * Other Important Release informaton
  Version
  Release Manager
  Security Fixes
  New Directives
  Changed Directives
  State (Alpha/Beta/GA)
  Etc.

Apache Software Foundation History
  * Project Profiles
  * Member Profiles
  Join Date
  First List Post
  Description of work done for project

Subprojects History
  * Convince at least one person from each project to participate and
maintain history of that project.
  * Short historical description
  * Usage statistics
  * Same project parts as the httpd history projects

Quote collection from development lists
  * Historical comments
  * Funny comments

We've already started on the httpd release timeline and we have
information exchanges over IRC that would fit better in a cvs repository,
so we'd really like to get something moving very soon now.

We've put our uptodate writings on http://stderr.net/history/ for now
and anyone is free to look and give suggestions.

One volunteer has already come forward to help us gather data and we've
compiled some statistics from this mailinglist showing how many posts
each person has made since '95:

Total Posts on [EMAIL PROTECTED]: 87510

  1: Dean Gaudet 5184  5.924%
  2: Ryan B. Bloom   4521  5.166%
  3: Jim Jagielski   4404  5.033%
  4: Rob Hartill 4200  4.799%
  5: Marc Slemko 3807  4.350%
  6: Ben Laurie  3769  4.307%
  7: Ken Coar3457  3.950%
  8: Brian Behlendorf3263  3.729%
  9: Randy Terbush   2996  3.424%
 10: William Rowe2859  3.267%
 11: Greg Stein  2315  2.645%
 12: Roy T Fielding  2099  2.399%
 13: Jeff Trawick1894  2.164%
 14: Ralf S Engelschall  1748  1.997%
 15: Bill Stoddard   1703  1.946%
 16: Robert S Thau   1699  1.941%
 17: Alexei Kosut1684  1.924%
 18: Chuck Murcko1503  1.718%
 19: Rasmus Lerdorf  1260  1.440%
 20: Martin Kraemer  1202  1.374%
 21: Sameer Parekh   1196  1.367%
 22: Dirk-Willem van Gulik   1064  1.216%
 23: Cliff Woolley   1011  1.155%
 24: Manoj Kasichainula   964  1.102%
 25: Justin Erenkrantz953  1.089%

Full list of posters with more than 10 posts can be found at:
http://stderr.net/history/topposters

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/



Re: Apache History Project - Call for comments

2002-05-14 Thread Thomas Eibner

On Tue, May 14, 2002 at 08:30:49PM -0700, Doug MacEachern wrote:
 On Tue, 14 May 2002, Doug MacEachern wrote:
 
  On Wed, 15 May 2002, Thomas Eibner wrote:
   
   Full list of posters with more than 10 posts can be found at:
   http://stderr.net/history/topposters
  
  cool, now i am tied with ben hyde.
 
 haha, now i am 1 ahead of ben hyde, i'm #32 woohoo!

You're already way ahead, the archive we generated it from only goes
up to May 1st ;)

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/



Re: Apache History Project - Call for comments

2002-05-12 Thread Thomas Eibner

On Sun, May 12, 2002 at 10:47:52PM -0400, Rich Bowen wrote:
 On Sun, 12 May 2002, Aaron Bannert wrote:
 
   Well, this is very promising. The first thing we'd really like is a
   mailing list. What's the SOP for getting one created? Or is there
   something else that needs to happen before that can be done?
  
   I figure we should get moving while we're motivated, before real life
   intrudes.
 
  Should we make this part of the Docs project, and then if it starts
  generating enough traffic it can be moved to its own list?
 
 There are two reasons I did not want this to happen.
 
 First, we want this to be larger than just the httpd project, and want
 other projects to be included even from the start. Of course, the fact
 that this entire discussion has happened on httpd.apache.org lists does
 not help that argument any.

And it's not closely related to the current development of Apache (Oh
yes it is! But we're putting this into the history-book).

 Secondly, since I'm a history nut, as I have already illustrated, it
 seeme beneficial to have this discussion happen in an environment
 un-commingled with other stuff, so that it is easy to see which is
 which.

And so we generate too much off topic-ness.

 This seemed to also be Thomas' opinion when we discussed it on IRC a
 little while ago. Perhaps he can chime in - I think he's on this list.

Yes, you pretty much laid my opinion out on the table in your mail :)

 I'm not sure how much traffic this will ever generate, as it is largely
 an effort of archaelogy, not a creative process, per se. (Sounds here
 like I'm waffling a little. Dunno.) We need some forum in which to
 discuss what needs to get done, and have it archived. Apart from that, I
 suppose I'm not terribly concerned.

Traffic is likely to happen in bursts and might get lost in all the other
discussion that goes on here on dev@.
Right now we're still brainstorming on which kind of information we'd like
to see in the history project and it would benefit having a seperate
mailinglist for that. 

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/
  !(C)http://copywrong.dk/  http://apachegallery.dk/
  Putting the HEST in .COM http://www.hestdesign.com/



Re: [PATCH] mod_auth_anon 1.3

2002-04-26 Thread Thomas Eibner

On Fri, Apr 26, 2002 at 12:49:12PM -0700, Joshua Slive wrote:
 
 On Fri, 26 Apr 2002, Thomas Eibner wrote:
 
 
  After a short discussion on #apache we came to the conclusion that the
  way mod_auth_anon logs the passwd used to access the uri is kind of
  annoying. So instead of logging to the error log we decided it might
  be smart if it used the ident field.
 
  use or toss - if used Rich Bowen promised to update the docs for the
  module.
 
 Ehhh... too much overloading.  Why not stick it in the environment
 and then use %{something}e to log it?

That would be another way of doing it, but would of course involve a
bit more code and more likely to cause breakage.

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/



Re: Going GA

2002-04-05 Thread Thomas Eibner

On Fri, Apr 05, 2002 at 11:38:34PM +0200, [EMAIL PROTECTED] wrote:
 
 Yoo - good stuff !
 
 ... but you guys *DO* realize that this does carve your API's
 in stone - renamings in APR will be harder from hereon
 as will be, say, a change in some of the initial bucketeering
setups or whatever :-)
 
 Hate to be a spoilfun - but this GA tendency feels a bit..
   sudden to me :-)

As a bystander I can second that. Wondering if anyone who might not
be able to read the list today wanted a say in that too. 
Less than 8 hours after bringing it up for the first time it's all
ready to be pushed out. (Just an observation)

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/



Re: Going GA

2002-04-05 Thread Thomas Eibner

On Fri, Apr 05, 2002 at 06:23:30PM -0500, Cliff Woolley wrote:
 On Sat, 6 Apr 2002, Thomas Eibner wrote:
 
  As a bystander I can second that. Wondering if anyone who might not
  be able to read the list today wanted a say in that too.
  Less than 8 hours after bringing it up for the first time it's all
  ready to be pushed out. (Just an observation)
 
 It's hardly the first time we've been ironing out just one more
 thing for months now.  While yes I tend to feel it's sudden, I look back
 and realize, no, it isn't.  IMHO.

I know that and I'm all for it, but with the months of waiting it might
be better to wait just a little more and make absolutely sure that there
is nothing stopping a GA. 

But on with the show. :)

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/



Re: modules.apache.org

2002-02-13 Thread Thomas Eibner

On Wed, Feb 13, 2002 at 09:08:38AM -0800, Ian Holsman wrote:
 even easier
 a nightly cron job which does a HEAD on the URL link.
 if it 404's x in a row it gets marked as old
 if it 404's for a week/month it gets deleted
 
 what are you planning to write this in JSP/perl/PHP ?
 or a custom apache module (this is dev@ after all)

Already a lot of ideas floating around, maybe it would be good to get
a mailinglist set up for discussion on it?

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/



Re: modules.apache.org

2002-02-13 Thread Thomas Eibner

On Wed, Feb 13, 2002 at 09:40:49AM -0800, Ryan Bloom wrote:
 I know, but I don't have a machine yet.  I'm not going to have the box
 ready until next Wednesday.  I just wanted to give a quick heads up and
 get people thinking.  I would get things setup sooner, but I have a
 major deadline this week, and I can't spare the cycles right now.  I
 promise, as soon as I can next week I will get the machine and mailing
 list setup.
 
 In the meantime, I will speak to my sysadmins to see if I can get a
 temporary mailing list setup on our current mail server.

It's fine, and I was just trying to make people stop emptying out their
ideas before something was set up :-) And if it really was important then
I'm sure there'd be more than a few offering a temp list setup, but I
have no problem waiting for it.

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/



Re: modules.apache.org

2002-02-12 Thread Thomas Eibner

On Tue, Feb 12, 2002 at 02:30:28PM -0500, Rodent of Unusual Size wrote:
 Ryan Bloom wrote:
  
  That machine will be hosted by Covalent, and accounts on that machine
  will be given out as it makes sense.  For the time being, I will be
  admin'ing the machine in my spare time, so things may take a while to
  get kick-started.
 
 Please colour me interested in helping..

Are there any projects regarding modules.apache.org that will require
development effort? I'd be interested in helping if that is the case.

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/



Re: modules.apache.org

2002-02-12 Thread Thomas Eibner

On Tue, Feb 12, 2002 at 11:41:20PM +0100, Martin Kraemer wrote:
 On Tue, Feb 12, 2002 at 11:48:10AM -0800, Ryan Bloom wrote:
  The hope is that we will replace the entire look and feel of the
  modules.apache.org site.  I am hoping that once I have the machine up
  and running, I can create a mailing list, and we can all discuss our
  goals for the site at that time.
 
 Hopefully it will be better connected (at least for european users, the
 current modules.apache.org is dead slow and unreliable).

Funny. I never had any problems accessing it from Denmark.

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer http://photos.eibner.dk/



Re: [PATCH] log cookie values in 1.3, repost

2002-01-29 Thread Thomas Eibner

On Tue, Jan 29, 2002 at 11:22:45AM -0500, Brian Akins wrote:
 I didn't get any feedback the first time I posted this.

Looks good to me (not tested), I was just wonder if 2.0 supports logging
of Cookie2 fields also? Anything planned on that?

 Thanks.
 
 --  Forwarded Message  --
 
 Subject: [PATCH] log cookie values in 1.3
 Date: Thu, 24 Jan 2002 09:41:47 -0500
 From: Brian Akins [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 
 I copied the %C{CookieName} log variable from Apache 2 to 1.3
 
 
 --
 Brian Akins
 Systems Engineer III
 CNN Internet Technologies



-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer !(C)http://copywrong.dk/
  Putting the HEST in .COM http://www.hestdesign.com/
  



Re: Tagging 1.3.23

2002-01-22 Thread Thomas Eibner

On Tue, Jan 22, 2002 at 02:36:31AM -0500, Victor J. Orlikowski wrote:
 Hrm.Gave things a second look.
 
 Thomas, I think your fix is fine. I will commit it shortly.
 
 I think, however, that a more reliable option with the various Linux
 distributions may be to use the DBM_LIB variable a little more in
 src/Configure. If we can determine the linux distribution being used,
 we could simply set DBM_LIB as needed, and simplify find-dbm-lib down
 to the default case.

 On RedHat, I know that version info is kept in /etc/redhat-release.
 Is there something similar on other distributions (I ask about Debian
 in particular, as I am rather ignorant of its setup)?

/etc/debian_version, but I'm not sure any dbm headers are included by
default in debian, I'll have to install a vmware test box later tonight.

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer 




Re: Tagging 1.3.23

2002-01-21 Thread Thomas Eibner

On Mon, Jan 21, 2002 at 04:15:25PM -0500, Rodent of Unusual Size wrote:
 Thomas Eibner wrote:
  
  ln -s /usr/include/gdbm-ndbm.h /usr/include/ndbm.h in case
  you're running debian and have installed libgdbmg1-dev.
  (If that is the case: debian breakage by default, not apache's fault)
 
 A /usr/include/gdbm/ndbm.h file exists.  Adding symbolic
 links all over the /usr/include tree is *not* an option if
 other packages don't have a problem with finding it.

But you're not including gdbm/ndbm.h. You're including ndbm.h in the
module.

And having -I/usr/include/gdbm sounds just as bad as linking with gdbm-ndbmh

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer 




Re: Tagging 1.3.23

2002-01-21 Thread Thomas Eibner

On Mon, Jan 21, 2002 at 05:04:01PM -0500, Rodent of Unusual Size wrote:
 Thomas Eibner wrote:
  
  Moving around on the way that find-dbm-lib looks for the libs works for
  me on my Debian box. Is this going to break something else?
 
 Without testing this patch (my 7.1 system just hung again),
 wouldn't we have to fix the CFLAGS to include -I/usr/include/gdbm,
 though?

Your machine didn't have the db1 files? Why don't we just add another
test with the gdbm headers then? Need a patch?

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer 




Re: Tag 1.3.23?

2002-01-18 Thread Thomas Eibner

On Fri, Jan 18, 2002 at 12:53:33PM -0500, Bill Stoddard wrote:
 
   I think we concluded that e would rather not break binary compatability on 
Windows or
 any
   other platform. So the part of the patch commited on 12/28/01 12:03 AM that 
breaks
   compatability needs to be removed or reworked.
 
  No, the original code was, simply, broken.  We must find a way to break
  compatibility for modules using _those_few_functions_, alone.  They are;
 
  ap_snprintf
  ap_table_do
  ap_bvputs
  ap_rprintf
  ap_log_error
  ap_log_rerror
  ap_log_printf
 
  My suggestion is that with seven broken declarations now fixed on Win32, we
  export with a leading underscore (exactly as they would normally get, if there
  were no .def file at all), and their ordinals changed.  This will assure
  compatibility of _only_ those seven functions is toggled, without general and
  massive breakage across the board.  I am very uncomfortable with (...) args
  using pascal conventions, and really do not trust these not to introduce some
  odd segfaults as things stand in Win32 land.
 
 We have been successfully running with the 'broken' code from the beginning of 
Apache 1.3.
 And I have -never- seen a problem reported because of the way these functions are
 exported. I would conclude that the code is in fact not broken. Overwhelming 
empirical
 evidence supports that conclusion.

As I understood most of it, this patch I provided also fixed that some of
the functions weren't even being exported correctly. I had to use the
ap_update_vhost_from_headers in one of my modules and Gunter Knauf was
nice to report that if the function was exported correctly my module would
also work on Win32 and Netware platforms. I submitted an initial patch and
was asked to fix all the non-correctly exported functions. I did and Wrove
fixed the incorrect exports that have been in the tree since it was made.
If you want the fix pulled out I'd suggest that you don't make the functions
available at all from src/support/httpd.exp since it has never correctly
been exported, which I consider a reasonable bug. 

So basically you're told that there's a set of api functions, but if you
use some that we didn't even export, you're out of luck. 

my $cent = 2;

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer 




Re: Emacs stanza?

2002-01-03 Thread Thomas Eibner

On Thu, Jan 03, 2002 at 08:52:05AM -0800, Bruce Korb wrote:
 Rodent of Unusual Size wrote:
 
  It ... would save us the inevitable and repetitious
  pain of style-fixup patches and their effects on people's
  work-in-process..  Other ASF projects do this (such as
  PHP), so it wouldn't be a new departure.
 
 Another approach, used by postgress, is to have a standardized
 set of arguments for ``indent''.  Regular runs of that fix both
 vi users and x-pasted text.  I use the stanza for my stuff, too.

But it's still kinda ugly having to commit indent fixes.

http://httpd.apache.org/dev/styleguide.html has the indent arguments.

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer 




Re: Debugging help, please?

2002-01-02 Thread Thomas Eibner

On Wed, Jan 02, 2002 at 02:07:24PM -0800, Bruce Korb wrote:
 
 Hi,
 
 I'm trying to figure out how to use GDB or any debugger from within
 a cgi program started by Apache under Linux.  I tried the obvious:
 
   #! /bin/sh
   DISPLAY=:0.0 xterm -e gdb /path/to/bin/exe
 
 to no avail, so I was hoping for a hint here  :-).
 The more simplistic approach of cloning the environment in a shell
 script does not evidence the problem.  It only seems to be
 reproducible on Linux under Apache.  (It works correctly on other
 platforms or using different execution environments on Linux.)
 If this is a known problem with known workarounds or fixes,
 that would be even better than trying to use gdb  :-D

Try recompiling Apache with CFLAGS=-g and then start it in single
child mode in gdb:

$ gdb /path/to/bin/httpd
(gdb) run -X

.. does it help?

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer 




Re: Debugging help, please?

2002-01-02 Thread Thomas Eibner

On Wed, Jan 02, 2002 at 02:24:41PM -0800, Bruce Korb wrote:
 I'll see what I can do tonight, when I get home.  Thanks.
 I'm not really sure I've ever been able to capture a 
 child with gdb, though.  It's easy with UnixWare's Debug,
 but I'll see what I can do.  Thanks! - Bruce

That's why you run apache in the single process mode (-X).

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer 




[PATCH (1.3)] Export functions defined in httpd.exp

2001-12-21 Thread Thomas Eibner

Hi,

A few months ago I proposed a patch (With Gunter Knauf's help) that
would make my module mod_rpaf compile on Win32 and netware. It used
the ap_update_vhost_from_headers function which wasn't correctly
exported for it to compile. I proposed a patch to make that work,
but was told that it would be nice to get the rest of the functions
from httpd.exp exported to. So here is my first take at it (finally):

Notes:
I've deliberatly left out the XML_ space.
Some functions were a bit tricky:
ap_dummy_mutex
ap_listeners
ap_os_is_path_absolute
ap_prelinked_modules
ap_preloaded_modules
ap_rfc1413_timeout
ap_scoreboard_image
ap_signal
ap_slack
ap_sys_siglist
ap_util_init
ap_util_uri_init

The rest of the functions should be exported now. Anyone care to take
a look if they're all done right? 

Are there any more platforms it need to be done for?

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer 



Index: src/ApacheCore.def
===
RCS file: /home/cvspublic/apache-1.3/src/ApacheCore.def,v
retrieving revision 1.28
diff -u -r1.28 ApacheCore.def
--- src/ApacheCore.def  2000/12/27 21:45:11 1.28
+++ src/ApacheCore.def  2001/12/21 14:04:03
@@ -389,3 +389,54 @@
ap_stripprefix @380
 ap_os_dso_load @381
 ap_os_dso_error @382
+ap_update_vhost_from_headers @383
+ap_update_vhost_given_ip @384
+ap_set_name_virtual_host @385
+ap_parse_vhost_addrs @386
+ap_fini_vhost_config @387
+ap_init_vhost_config @388
+ap_check_access @389
+ap_check_auth @390
+ap_check_user_id @391
+ap_translate_name @392
+ap_find_types @393
+ap_run_fixups @394
+ap_invoke_handler @395
+ap_log_transaction @396
+ap_header_parse @397
+ap_run_post_read_request @398
+ap_single_module_configure @399
+ap_init_modules @400
+ap_child_init_modules @401
+ap_child_exit_modules @402
+ap_setup_prelinked_modules @403
+ap_show_directives @404
+ap_show_modules @405
+ap_parse_htaccess @406
+ap_process_resource_config @407
+ap_create_request_config @408
+ap_merge_per_dir_configs @409
+ap_bind_address @410
+ap_core_reorder_directories @411
+ap_coredump_dir @412
+ap_force_library_loading @413
+ap_get_local_host @414
+ap_get_virthost_addr @415
+ap_init_alloc @416
+ap_keepalive_timeout @417
+ap_listenbacklog @418
+ap_lock_fname @419
+ap_log_pid @420
+ap_open_logs @421
+ap_process_request @422
+ap_read_config @423
+ap_read_request @423
+ap_response_code_string @424
+ap_rfc1413 @425
+ap_send_http_options @426
+ap_server_config_defines @427
+ap_server_post_read_config @428
+ap_server_pre_read_config @429
+ap_set_callback_and_alarm @430
+ap_set_sub_req_protocol @431
+ap_update_child_status @432


Index: src/os/netware/ApacheCore.imp
===
RCS file: /home/cvspublic/apache-1.3/src/os/netware/ApacheCore.imp,v
retrieving revision 1.9
diff -u -r1.9 ApacheCore.imp
--- src/os/netware/ApacheCore.imp   2001/08/13 21:40:45 1.9
+++ src/os/netware/ApacheCore.imp   2001/12/21 14:12:37
@@ -362,4 +362,55 @@
  ap_os_canonical_filename,
  ap_os_http_method,
  os_readdir,
- os_opendir
+ os_opendir,
+ ap_update_vhost_from_headers,
+ ap_update_vhost_given_ip,
+ ap_set_name_virtual_host,
+ ap_parse_vhost_addrs,
+ ap_fini_vhost_config,
+ ap_init_vhost_config, 
+ ap_check_access,
+ ap_check_auth,
+ ap_check_user_id,
+ ap_translate_name,
+ ap_find_types,
+ ap_run_fixups,
+ ap_invoke_handler,
+ ap_log_transaction,
+ ap_header_parse,
+ ap_run_post_read_request,
+ ap_single_module_configure,
+ ap_init_modules,
+ ap_child_init_modules,
+ ap_child_exit_modules,
+ ap_setup_prelinked_modules,
+ ap_show_directives,
+ ap_show_modules,
+ ap_parse_htaccess,
+ ap_process_resource_config,
+ ap_create_request_config,
+ ap_merge_per_dir_configs,
+ ap_bind_address,
+ ap_core_reorder_directories,
+ ap_coredump_dir,
+ ap_force_library_loading,
+ ap_get_local_host,
+ ap_get_virthost_addr,
+ ap_init_alloc,
+ ap_keepalive_timeout,
+ ap_listenbacklog,
+ ap_lock_fname,
+ ap_log_pid,
+ ap_open_logs,
+ ap_process_request,
+ ap_read_config,
+ ap_read_request,
+ ap_response_code_string,
+ ap_rfc1413,
+ ap_send_http_options,
+ ap_server_config_defines,
+ ap_server_post_read_config,
+ ap_server_pre_read_config,
+ ap_set_callback_and_alarm,
+ ap_set_sub_req_protocol,
+ ap_update_child_status,


Index: src/main/alloc.c
===
RCS file: /home/cvspublic/apache-1.3/src/main/alloc.c,v
retrieving revision 1.123
diff -u -r1.123 alloc.c
--- src/main/alloc.c

Re: [PATCH (1.3)] Export functions defined in httpd.exp

2001-12-21 Thread Thomas Eibner

On Fri, Dec 21, 2001 at 09:08:27AM -0600, William A. Rowe, Jr. wrote:
 Hmmm.
 
 Ok.  Here's my take.  Your patch breaks mod_ssl EAPI's patch (makes some
 of it superfluous, actually) and breaks ALL binary compatibility.
 
 Lets go for it :)

But it's better to get it over with in one take right?

 Here's my suggestion.  Do as you've advocated [based on httpd.exp].  But
 DROP the ordinals on Win32.  The hash-lookup of the fn names that occurs
 under the covers makes the differences nill.  Modules will continue to be 
 backwards compatible from, oh, maybe version 1.3.14 or whenever we last 
 horked with the structs.  But no older modules will be forward compatible, 
 since they were bound by ordinal value.

So what do you want me to do with the Win32 part?

 I'll experiment and consider applying your patch.  Without a veto, and 
 after Brad has reviewed this on Netware, I would be happy to commit the
 patch, with the appropriate no-ordinals fix [probably as a seperate step.]

And we definitelly want to make sure I exported all the functions
correctly before applying it. I had a fair part of the actual patching
automated with and kept an eye on what it did. I would just like for
someone other than myself to verify that I'm using the correct 
API_EXPORT,CORE_EXPORT,API_EXPORT_NONSTD definitions all over. 

thanks,

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer 




Re: cvs commit: apache-1.3/src CHANGES

2001-12-20 Thread Thomas Eibner

On Thu, Dec 20, 2001 at 11:28:22AM -0600, William A. Rowe, Jr. wrote:
 From: Bill Stoddard [EMAIL PROTECTED]
 Sent: Thursday, December 20, 2001 11:24 AM
 
 
  With this, I'm thinking it's time for 1.3.23, which should hold us for 1.3 
releases for
  the better part of 2002.
  
  Yeas or Neas?
 
 Yea [but]
 
 but we are seeing a lot of problems with parsed (SHTML, PHP etc) content
 being corrupted on WinXP machines.  It would be good to fix that once
 and not need 'yet another ugly hack' two months from now.
 
 Not every XP user sees this.  Both loopback and external IP stacks are
 affected.  Some report this with a clean install.  Continues even after
 disabling all the eXPtra cruft MS has introduced.
 
 So if any win32 hackers have some time to dig into this, it would be
 a good thing to fix, and then call 1.3 'done' for a while :)

Would it be possible to integrate the changes needed to export all of
the API functions consistently to all platforms? I still have a patch
in-progress for a few months now, but I might schedule time to get it
done over the weekend now. 

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer 



Re: mod_rewrite.c adding X-Forwarded-For for proxy requests

2001-10-04 Thread Thomas Eibner

On Thu, Oct 04, 2001 at 11:55:42AM -0700, Josh Goldberg wrote:
 I'm new around here, so please correct me if this is the wrong list.  I was having 
trouble with my weblogs only seeing my reverse proxy server as the referrer, so I 
integrated Bjoern Hansen's proxy_add_forward module functionality into the proxy 
section of mod_rewrite.  Below is diff of CVS rev. 1.172 against my module.

If it was to be put in there mod_rewrite probably wouldn't be the place
to put it (IMO). mod_proxy is where it belongs.

What are you using to get it the other way around on your backend? I made
a little module that does the opposite of mod_proxy_add_forward, it's
called mod_rpaf and you can find it on http://stderr.net/apache/rpaf/

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer 




Re: [PATCH] Add mod_gz to httpd-2.0

2001-09-05 Thread Thomas Eibner

Okay, I'll bite.

On Wed, Sep 05, 2001 at 01:46:55PM -0600, Peter J. Cranstone wrote:
[Snip: nothing that hasn't been said in this thread before]

 If it's not technical, then it's social (you just plain don't like us...
 Not a problem) or political (the powers that be don't like us... Again
 not a problem)
 
 From a political standpoint I'm pissed that Covalent Technologies can
 cut a deal with Compaq for the new Compaq Apache server (wonder if it
 will ship with or without compression (details are tough to find on this
 whole deal). But you know what, more power to Ryan and his crew for
 doing something like that. Did I ever see a vote for something like
 that, no... I even checked the ASF minutes... Nothing since February.
 Whatever.

Why are you dragging this into the discussion? I can't see that it has
anything to do with it. Anyone else seeing this as a bad thing for 
Apache?

I don't see why they shouldn't be allowed to do this, anyone should be
able to do this, even your company. But do you have the expertise?

Looking at the License of Apache it doesn't make it sound like they
wouldn't be able to do so, as long as they state like written in the
license: This product includes software developed by the Apache Group
for use in the Apache HTTP server project (http://www.apache.org/).
Which I am quite sure they will, Covalent will probably use every chance
they get to promote Apache.

The reason why there might not be more information on this deal than
what Covalents website gives[1] might be that the rest is to be worked
out?

When I heard this I was kind of happy for Apache, 'cause it can only be
a good thing if Covalent gets a deal like this. More money, more likely
that Ryan, Randy, Dough, William, etc. will keep up their very good work
on Apache.

my $cent = 2;

[1] http://www.covalent.net/company/press/news-20010828.php

-- 
  Thomas Eibner



Re: [PATCH] Add mod_gz to httpd-2.0

2001-09-03 Thread Thomas Eibner

On Mon, Sep 03, 2001 at 12:22:33PM -0700, Justin Erenkrantz wrote:
 My point is that almost every OS comes with a copy of zlib now.  We
 can't expect most people to have pcre and expat, but I think we can 
 with zlib though.  I'd rather not build zlib if we didn't need to.  
 The exception here is probably Win32 (which is why I think you want 
 the source).  -- justin

How many people compile Apache on Win32 themselves anyway? It should be
enough if the person that creates the Apache Win32 binary has zlib 
installed right? So it really shouldn't be that big of a problem?
Of course the sources could be bundled with a guide on how to install
zlib on Win32 if you really wanted it anyway..

-- 
  Thomas Eibner http://thomas.eibner.dk/ DnsZone http://dnszone.org/
  mod_pointer http://stderr.net/mod_pointer