You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jeff Goldfarb <ja...@otra.com> on 2002/03/23 23:12:26 UTC

Apache File Length Problem

I am finding that Apache often sends more data that exists in a file. 
This particularly happens when sending encrypted PDF files. The length 
difference tends to be 20 bytes (although I haven't done extensive 
testing). This occurs in versions from 1.3.20 to 1.3.24 (Linux) and does 
not occur on 1.3.12. I have not tested versions in between 12 and 20. 
Tests with the different versions were done on the same machine, same 
config, same files... only a change in the build.

The result is a very odd Acrobat/IE interaction which, basically, 
prevents PDF files from being viewed.

I have not seen reports of this behavior, but would like to know if 
anyone has seen it, or has a workaround (other than reverting to the 
older build, which we have done).

This happens with virtually every encrypted PDF file I have tried.

Thanks for your comments and help,

Jeff Goldfarb
jag@otra.com


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Apache File Length Problem

Posted by Irmund Thum <it...@it97.dyn.dhs.org>.
Jeff Goldfarb wrote:

> I am finding that Apache often sends more data that exists in a file. 
> This particularly happens when sending encrypted PDF files. The length 
> difference tends to be 20 bytes (although I haven't done extensive 
> testing). This occurs in versions from 1.3.20 to 1.3.24 (Linux) and does 
> not occur on 1.3.12. I have not tested versions in between 12 and 20. 

I remember very well a byte length calc problem for PDF in 1.3.14 
(retrack the build for November 2000) what caused especially problems on 
a Compaq Alpha machine during user uploads of large pdf files. After 
getting nearly desperated to solve the problem it was fixed with the 
following version. But meanwhile we had instructed the users to split 
their large pdf files :-

see changelogs http://www.apache.org/dist/httpd/CHANGES_1.3
-- *) Fix Content-Length calculation when doing Range header processing.
      This makes PDF byteserving work again. [Tony Finch] PR#6711

_ ___
|  |  Irmund    Thum
|  |


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: The Truth About ErrorDocument Directive

Posted by ruler <ru...@isolate.net>.
Sorry, I misread your question and I don't get any warnings with apache
1.3.24 doing what you said.
----- Original Message -----
From: "ruler" <ru...@isolate.net>
To: <us...@httpd.apache.org>
Sent: Saturday, March 23, 2002 8:56 PM
Subject: Re: The Truth About ErrorDocument Directive


> What I did is
> ErrorDocument 404 http://my1.domain.com/404.html
>
> Say someone went to my5.domain.com, it will goes to
my1.domain.com/404.html
>
> So I guess in theory, what you said about BEING able to use errordocument
to
> any URL is correct.
> ----- Original Message -----
> From: "Roger Williams" <ro...@roger.jp>
> To: <us...@httpd.apache.org>
> Sent: Saturday, March 23, 2002 7:44 PM
> Subject: The Truth About ErrorDocument Directive
>
>
> >
> > Can someone please tell me the truth about the ErrorDocument Directive?
> The
> > Docs say you can use a full URL as a directive, but I have seen pages
"out
> > there" that claim apache docs are wrong and you can't us a full URL
> > (http://abc.com).  When I put one in my conf file and run configtest I
get
> a
> > warning but yet it still serves the page at the full URL.  As long as it
> > works it is all good, I'm just curious about the inconsistincies.
> >
> > Thanks,
> > Roger Williams
> >
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: The Truth About ErrorDocument Directive

Posted by ruler <ru...@isolate.net>.
What I did is
ErrorDocument 404 http://my1.domain.com/404.html

Say someone went to my5.domain.com, it will goes to my1.domain.com/404.html

So I guess in theory, what you said about BEING able to use errordocument to
any URL is correct.
----- Original Message -----
From: "Roger Williams" <ro...@roger.jp>
To: <us...@httpd.apache.org>
Sent: Saturday, March 23, 2002 7:44 PM
Subject: The Truth About ErrorDocument Directive


>
> Can someone please tell me the truth about the ErrorDocument Directive?
The
> Docs say you can use a full URL as a directive, but I have seen pages "out
> there" that claim apache docs are wrong and you can't us a full URL
> (http://abc.com).  When I put one in my conf file and run configtest I get
a
> warning but yet it still serves the page at the full URL.  As long as it
> works it is all good, I'm just curious about the inconsistincies.
>
> Thanks,
> Roger Williams
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: The Truth About ErrorDocument Directive

Posted by Roger Williams <ro...@roger.jp>.
When all else fails...follow the directions.  Thanks for the help!

Roger

PS  I know about the other error.    A client deleteed hos DocRoot Dir...go
figure...lol

-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca]
Sent: Saturday, March 23, 2002 9:22 PM
To: users@httpd.apache.org
Subject: Re: The Truth About ErrorDocument Directive



On Sat, 23 Mar 2002, Roger Williams wrote:

>
> Can someone please tell me the truth about the ErrorDocument Directive?
The
> Docs say you can use a full URL as a directive, but I have seen pages "out
> there" that claim apache docs are wrong and you can't us a full URL
> (http://abc.com).  When I put one in my conf file and run configtest I get
a
> warning but yet it still serves the page at the full URL.  As long as it
> works it is all good, I'm just curious about the inconsistincies.
>

What warning do you get?  What pages "out there" are making those claims?

The docs at
http://httpd.apache.org/docs/mod/core.html#errordocument
are perfectly accurate.  Full or local URLs can be used, except for 401.
Local URLs are recommended because full URLs will hide the true status
code from the client (in order to send the redirect status code).

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: The Truth About ErrorDocument Directive

Posted by Joshua Slive <jo...@slive.ca>.
On Sat, 23 Mar 2002, Roger Williams wrote:

>
> Below is what I get when I run configtest.  I dont remeber the page I saw
> that said it wasnt going to work, I was looking every where for info on the
> subject. But they did come outright and say Apache Docs were wrong.
>
> Roger
>
>
> su-2.04# /var/www/bin/apachectl configtest
> [Sun Mar 24 11:48:48 2002] [notice] cannot use a full URL in a 401
> ErrorDocument directive --- ignoring!
> Warning: DocumentRoot [/home/golfc3/virtual_html] does not exist
> Syntax OK
> su-2.04#

The warning is perfectly correct and exactly echos the documentation where
I just pointed you.  Full URLs can be used for anything except
ErrorDocument 401.

The apache docs certainly aren't always correct, but they are usually more
accurate than some random thing you find from googling.  And in this case
they are perfectly accurate.

(The DocumentRoot warning is, of course, completely separate.)

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE:(version #) The Truth About ErrorDocument Directive

Posted by Roger Williams <ro...@roger.jp>.
su-2.04# /var/www/bin/httpd -v
Server version: Apache/1.3.23 (Unix)
Server built:   Mar  8 2002 05:12:43

-----Original Message-----
From: Roger Williams [mailto:roger@roger.jp]
Sent: Saturday, March 23, 2002 9:57 PM
To: users@httpd.apache.org
Subject: RE: The Truth About ErrorDocument Directive



Below is what I get when I run configtest.  I dont remeber the page I saw
that said it wasnt going to work, I was looking every where for info on the
subject. But they did come outright and say Apache Docs were wrong.

Roger


su-2.04# /var/www/bin/apachectl configtest
[Sun Mar 24 11:48:48 2002] [notice] cannot use a full URL in a 401
ErrorDocument directive --- ignoring!
Warning: DocumentRoot [/home/golfc3/virtual_html] does not exist
Syntax OK
su-2.04#

-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca]
Sent: Saturday, March 23, 2002 9:22 PM
To: users@httpd.apache.org
Subject: Re: The Truth About ErrorDocument Directive



On Sat, 23 Mar 2002, Roger Williams wrote:

>
> Can someone please tell me the truth about the ErrorDocument Directive?
The
> Docs say you can use a full URL as a directive, but I have seen pages "out
> there" that claim apache docs are wrong and you can't us a full URL
> (http://abc.com).  When I put one in my conf file and run configtest I get
a
> warning but yet it still serves the page at the full URL.  As long as it
> works it is all good, I'm just curious about the inconsistincies.
>

What warning do you get?  What pages "out there" are making those claims?

The docs at
http://httpd.apache.org/docs/mod/core.html#errordocument
are perfectly accurate.  Full or local URLs can be used, except for 401.
Local URLs are recommended because full URLs will hide the true status
code from the client (in order to send the redirect status code).

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: The Truth About ErrorDocument Directive

Posted by Roger Williams <ro...@roger.jp>.
Below is what I get when I run configtest.  I dont remeber the page I saw
that said it wasnt going to work, I was looking every where for info on the
subject. But they did come outright and say Apache Docs were wrong.

Roger


su-2.04# /var/www/bin/apachectl configtest
[Sun Mar 24 11:48:48 2002] [notice] cannot use a full URL in a 401
ErrorDocument directive --- ignoring!
Warning: DocumentRoot [/home/golfc3/virtual_html] does not exist
Syntax OK
su-2.04#

-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca]
Sent: Saturday, March 23, 2002 9:22 PM
To: users@httpd.apache.org
Subject: Re: The Truth About ErrorDocument Directive



On Sat, 23 Mar 2002, Roger Williams wrote:

>
> Can someone please tell me the truth about the ErrorDocument Directive?
The
> Docs say you can use a full URL as a directive, but I have seen pages "out
> there" that claim apache docs are wrong and you can't us a full URL
> (http://abc.com).  When I put one in my conf file and run configtest I get
a
> warning but yet it still serves the page at the full URL.  As long as it
> works it is all good, I'm just curious about the inconsistincies.
>

What warning do you get?  What pages "out there" are making those claims?

The docs at
http://httpd.apache.org/docs/mod/core.html#errordocument
are perfectly accurate.  Full or local URLs can be used, except for 401.
Local URLs are recommended because full URLs will hide the true status
code from the client (in order to send the redirect status code).

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: The Truth About ErrorDocument Directive

Posted by Joshua Slive <jo...@slive.ca>.
On Sat, 23 Mar 2002, Roger Williams wrote:

>
> Can someone please tell me the truth about the ErrorDocument Directive? The
> Docs say you can use a full URL as a directive, but I have seen pages "out
> there" that claim apache docs are wrong and you can't us a full URL
> (http://abc.com).  When I put one in my conf file and run configtest I get a
> warning but yet it still serves the page at the full URL.  As long as it
> works it is all good, I'm just curious about the inconsistincies.
>

What warning do you get?  What pages "out there" are making those claims?

The docs at
http://httpd.apache.org/docs/mod/core.html#errordocument
are perfectly accurate.  Full or local URLs can be used, except for 401.
Local URLs are recommended because full URLs will hide the true status
code from the client (in order to send the redirect status code).

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


The Truth About ErrorDocument Directive

Posted by Roger Williams <ro...@roger.jp>.
Can someone please tell me the truth about the ErrorDocument Directive? The
Docs say you can use a full URL as a directive, but I have seen pages "out
there" that claim apache docs are wrong and you can't us a full URL
(http://abc.com).  When I put one in my conf file and run configtest I get a
warning but yet it still serves the page at the full URL.  As long as it
works it is all good, I'm just curious about the inconsistincies.

Thanks,
Roger Williams


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org