Steve | 1 Oct 06:33 2009
Picon

Re: Connection Reset

Hi Ricardo,


I found when I was doing my tests with httperf, I had to use multiple computers to do proper load testing because HTTPERF couldn't handle sending so many simultaneous connections. Through trail and error the best results I got was using only ~400 simultaneous requests firing from the software. Then I multiplied that same load test over many computers.

Steve

2009/9/30 ricardo13 <ricardoogrande <at> gmail.com>

The error called "connreset".
This is a example.

Total: connections 10000 requests 10000 replies 8952 test-duration 136.478 s

Connection rate: 73.3 conn/s (13.6 ms/conn, <=9387 concurrent connections)
Connection time [ms]: min 1025.6 avg 38879.9 max 134963.6 median 33947.5
stddev 23360.4
Connection time [ms]: connect 16893.1
Connection length [replies/conn]: 1.000

Request rate: 73.3 req/s (13.6 ms/req)
Request size [B]: 66.0

Reply rate [replies/s]: min 0.0 avg 66.3 max 358.8 stddev 85.5 (27 samples)
Reply time [ms]: response 10972.9 transfer 9925.2
Reply size [B]: header 176.0 content 168814.0 footer 1.0 (total 168991.0)
Reply status: 1xx=0 2xx=8944 3xx=0 4xx=0 5xx=8

CPU time [s]: user 19.45 system 117.03 (user 14.3% system 85.8% total
100.0%)
Net I/O: 10829.5 KB/s (88.7*10^6 bps)

Errors: total 1048 client-timo 0 socket-timo 0 connrefused 0 connreset 1048
Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0

Ricardo







awarnier wrote:
>
> ricardo13 wrote:
>> Hi all,
>>
>> I'm submiting workload my web cluster using HTTPERF.
>> The result shows several errors about connection reset.
>>
>> My doubt is, when happen connection reset ??
>>
> Can you paste the *exact* error messages that you are seeing ?
>
>
>
> ---------------------------------------------------------------------
> 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 <at> httpd.apache.org
>    "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
> For additional commands, e-mail: users-help <at> httpd.apache.org
>
>
>

--
View this message in context: http://www.nabble.com/Connection-Reset-tp25690236p25690360.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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 <at> httpd.apache.org
  "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org


Clive Kinton | 1 Oct 09:52 2009

Re: OT: Vista Xampp and 'allow from localhost'

On Wed, 2009-09-30 at 18:29 -0400, Rich Bowen wrote:
> On Sep 30, 2009, at 15:47 , Clive Kinton wrote:
> 
> > Has anybody run into some weirdness with Apache 2.2.12 from Xampp on
> > Vista and ip to hostname resolution for 'localhost'? The httpd.conf is
> > vanilla, as shipped.
> >
> > Specific issue: Trying to limit access to a directory with a
> > simple .htaccess file like:
> >
> > Order deny,allow
> > Deny from all
> > Allow from localhost
> > Allow from 127.0.0.1
> >
> > or even
> >
> > Order allow,deny
> > Allow from localhost
> > Allow from 127.0.0.1
> >
> >> From the localhost calling the protected directory thus:
> > http://127.0.0.1/protected
> >
> > Works - but -
> > http://localhost/protected
> > does not and 403's
> 
> What does the error log say when this happens?
> 
> "Allow from" doesn't apply to the hostname requested, but the client  
> doing the requesting. So the hostname that appears in the URL  
> shouldn't have anything at all to do with whether those "allow from"  
> directives are honored.

I agree Rich. It should not make a blind bit of difference to it. I was
asked why because I knew 'a little bit' about apache. Initially I mocked
it up on an Ubuntu server* running:

Server version: Apache/2.2.9 (Ubuntu)
Server built:   Jul 10 2009 18:43:23

and it is CNR.

*The only subtle difference is the default on Ubuntu is the default site
is a Virtual host called in by apache2.conf

On this with the directives set;

        DocumentRoot /home/www/htdocs/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /home/www/htdocs/≥
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                Allow from all
        </Directory>

and a sub directory /htdocs/protected

with .htaccess within reading:

Order deny,allow
Deny from all
Allow from localhost
Allow from 127.0.0.1

http://localhost/protected/index.html
http://127.0.0.1/protected/index.html
Both serve as they should from localhost - and are refused from another
client.

The log for the call shows;

localhost - - [01/Oct/2009:08:15:07 +0100] "GET /protected/index.html
HTTP/1.1" 200 ....

And has clearly got 'localhost' as the name of the connecting client.

Now, on the Apache on Vista HP (xampp) with the directives set up in
httpd.conf (rather than VIRTUAL) and some slight path differences:

DocumentRoot "C:/xampp/experiment/htdocs"
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

<Directory "C:/xampp/experiment/htdocs">
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

With a sub directory /images containing .htaccess reading:

Order deny,allow
Deny from all
Allow from localhost
Allow from 127.0.0.1

http://127.0.0.1/images/index.html
Serves as expected

http://localhost/images/index.html
Throws a 403 with log entry:
vista-pc - - [01/Oct/2009:08:19:22 +0100] "GET /images/index.html
HTTP/1.1" 403 ....

It has resolved localhost to it's actual hostname of 'vista-pc' *so IP
to NAME is doing something* This is different to the Ubuntu box which
resolves 127.0.0.1 to 'localhost' and I suspect this is the issue. I
suspect this comes down to how Vista resolves IP to Name, hence I
suspect it is OT.

ASIDE
*****
Calling without naming the index page: http://localhost/images/ shows
the index with the restriction not working (this appears to be dictated
by '-' missing from Indexes. The behaviour consistent across platforms)
*****

> Nah, it's not off-topic. It's apache httpd configuration. xampp is  
> just one possible distribution of our code.
I'm sure this is some weirdness in where Vista changing 'localhost' for
the actual hostname. Both the hosts and LMhost.sam file have:

127.0.0.1	localhost

but none the less, it seems to resolve it to 'vista-pc' instead, using
something like 'hostname'. It is not named vista-pc anywhere else, it
has no DNS entries or host file entries for 'vista-pc'. The Ubuntu box
is called 'square', but Apache manages to get 'localhost' for it. I'm
not sure how relevant this is.

The final point - from Vista calling: http://127.0.0.1/images/index.html
Also 404's if you have .htaccess looking like this:

Order allow,deny
allow from localhost

But *works* (serves the page) if you have this;

Order allow,deny
allow from localhost
allow from 127.0.0.1

I'm starting to wonder if this could be a bug? But why only on Vista???
What am I missing here?

> 
> --
> http://us.apachecon.com/c/acus2009/sessions/363
> Apache HTTPD Nuts to Bolts - Two Day Training at ApacheCon
> 
> 
> ---------------------------------------------------------------------
> 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 <at> httpd.apache.org
>    "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
> For additional commands, e-mail: users-help <at> 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 <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Jawad hussain | 1 Oct 11:17 2009
Picon

405 Method not allowed


Hello,

I am trying to PUT one file through OpenXcap but it seems Apache 2.2.12 is not allowed PUT method. Following is the error. Can someone have some solution are there any special settings for appache.conf and httpd.conf.

xcapclient -i pres-rules Put

Error
--------


405 Method not Allowed

The requested method PUT is not allowed for the URL ---

By Apache 2.2.12 (Ubuntu) Server


--
Regards
Jawad Hussain

--
Regards
Jawad Hussain

André Warnier | 1 Oct 12:24 2009

Re: 405 Method not allowed

Jawad hussain wrote:
> Hello,
> 
> I am trying to PUT one file through OpenXcap but it seems Apache 2.2.12 is
> not allowed PUT method. Following is the error. Can someone have some
> solution are there any special settings for appache.conf and httpd.conf.
> 
> xcapclient -i pres-rules Put
> 
> Error
> --------
> 
> 
> 405 Method not Allowed
> 
> The requested method PUT is not allowed for the URL ---
> 
> By Apache 2.2.12 (Ubuntu) Server
> 
> 
And what a pity, he ?  If this was allowed by default, there would 
probably be 500,000 websites out there where you could just upload your 
files with xapclient.
:-)

There needs to be some module at Apache level to allow and handle these 
PUTs.  Check out the mod_dav module at

http://httpd.apache.org/docs/2.2/mod/mod_dav.html

This is not configured or enabled by default for good reasons.
A PUT request to, for example, "http://localhost/some-location" means 
that whatever the client is sending as body to that request, is accepted 
by the server and written to the disk location corresponding to that 
URL.  You probably do not want just anybody in the world being able to 
write files into your website directories, do you ?

So, don't just install mod_dav and enable this functionality without 
reading ALL the documentation VERY carefully, particularly the bits 
about authentication, security, etc.

Or else, give us the URL of your server.  We all need a place to store 
files cheaply.

---------------------------------------------------------------------
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 <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Clive Kinton | 1 Oct 12:37 2009

Re: OT: Vista Xampp and 'allow from localhost'

On Wed, 2009-09-30 at 18:29 -0400, Rich Bowen wrote:
> On Sep 30, 2009, at 15:47 , Clive Kinton wrote:
> 
> > Has anybody run into some weirdness with Apache 2.2.12 from Xampp on
> > Vista and ip to hostname resolution for 'localhost'? The httpd.conf
is
> > vanilla, as shipped.
> >
> > Specific issue: Trying to limit access to a directory with a
> > simple .htaccess file like:
> >
> > Order deny,allow
> > Deny from all
> > Allow from localhost
> > Allow from 127.0.0.1
> >
> > or even
> >
> > Order allow,deny
> > Allow from localhost
> > Allow from 127.0.0.1
> >
> >> From the localhost calling the protected directory thus:
> > http://127.0.0.1/protected
> >
> > Works - but -
> > http://localhost/protected
> > does not and 403's
> 
> What does the error log say when this happens?
> 
> "Allow from" doesn't apply to the hostname requested, but the client  
> doing the requesting. So the hostname that appears in the URL  
> shouldn't have anything at all to do with whether those "allow from"  
> directives are honored.

I agree Rich. It should not make a blind bit of difference to it. I was
asked why because I knew 'a little bit' about apache. Initially I mocked
it up on an Ubuntu server* running:

Server version: Apache/2.2.9 (Ubuntu)
Server built:   Jul 10 2009 18:43:23

and it is CNR.

*The only subtle difference is the default on Ubuntu is the default site
is a Virtual host called in by apache2.conf

On this with the directives set;

        DocumentRoot /home/www/htdocs/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /home/www/htdocs/≥
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                Allow from all
        </Directory>

and a sub directory /htdocs/protected

with .htaccess within reading:

Order deny,allow
Deny from all
Allow from localhost
Allow from 127.0.0.1

http://localhost/protected/index.html
http://127.0.0.1/protected/index.html
Both serve as they should from localhost - and are refused from another
client.

The log for the call shows;

localhost - - [01/Oct/2009:08:15:07 +0100] "GET /protected/index.html
HTTP/1.1" 200 ....

And has clearly got 'localhost' as the name of the connecting client.

Now, on the Apache on Vista HP (xampp) with the directives set up in
httpd.conf (rather than VIRTUAL) and some slight path differences:

DocumentRoot "C:/xampp/experiment/htdocs"
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

<Directory "C:/xampp/experiment/htdocs">
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

With a sub directory /images containing .htaccess reading:

Order deny,allow
Deny from all
Allow from localhost
Allow from 127.0.0.1

http://127.0.0.1/images/index.html
Serves as expected

http://localhost/images/index.html
Throws a 403 with log entry:
vista-pc - - [01/Oct/2009:08:19:22 +0100] "GET /images/index.html
HTTP/1.1" 403 ....

It has resolved localhost to it's actual hostname of 'vista-pc' *so IP
to NAME is doing something* This is different to the Ubuntu box which
resolves 127.0.0.1 to 'localhost' and I suspect this is the issue. I
suspect this comes down to how Vista resolves IP to Name, hence I
suspect it is OT.

ASIDE
*****
Calling without naming the index page: http://localhost/images/ shows
the index with the restriction not working (this appears to be dictated
by '-' missing from Indexes. The behaviour consistent across platforms)
*****

> Nah, it's not off-topic. It's apache httpd configuration. xampp is  
> just one possible distribution of our code.
I'm sure this is some weirdness in where Vista changing 'localhost' for
the actual hostname. Both the hosts and LMhost.sam file have:

127.0.0.1       localhost

but none the less, it seems to resolve it to 'vista-pc' instead, using
something like 'hostname'. It is not named vista-pc anywhere else, it
has no DNS entries or host file entries for 'vista-pc'. The Ubuntu box
is called 'square', but Apache manages to get 'localhost' for it. I'm
not sure how relevant this is.

The final point - from Vista calling: http://127.0.0.1/images/index.html
Also 404's if you have .htaccess looking like this:

Order allow,deny
allow from localhost

But *works* (serves the page) if you have this;

Order allow,deny
allow from localhost
allow from 127.0.0.1

I'm starting to wonder if this could be a bug? But why only on Vista???
What am I missing here?

> 
> --
> http://us.apachecon.com/c/acus2009/sessions/363
> Apache HTTPD Nuts to Bolts - Two Day Training at ApacheCon
> 
> 
> ---------------------------------------------------------------------
> 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 <at> httpd.apache.org
>    "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
> For additional commands, e-mail: users-help <at> 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 <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Soumendu Bhattacharya | 1 Oct 13:26 2009

Issue with mod_auth_digest

Hi ,

                                I am facing an issue with existing apache instances on hp unix. Looks like mod_auth_digest is failing to generate secret for Digest . It fails with the following error :

 

[Thu Oct 01 03:19:45 2009] [notice] Digest: generating secret for digest authentication ...

[Thu Oct 01 03:19:45 2009] [crit] (2)No such file or directory: Digest: error generating secret: No such file or directory

Configuration Failed

 

The httpd process completely dies off after giving this error. This works fine if I disable mod_auth_digest, but am in favour of understanding the issue and rather than trying this route (to disable mod_auth_digest).

 

On trying to google out , it seems people did face similar issues when they didn’t have /dev/random or /dev/urandom device files but these are already present on the system.

 

crw-r--r--   1 root       root       115 0x000001 Sep 26 10:14 /dev/urandom

crw-r--r--   1 root       root       115 0x000000 Sep 26 10:14 /dev/random

 

 

The process is started as root and then uses application user (user = xxxx , group = xxxx).

 

The server team is not able to help much about this and this is becoming a critical issue for us.  

 

These instances were all working fine before an upgrade was done (openssl and something else which the server team is not revealing).

 

The apache version being used is 2.2.11 on HP Unix 11.23. 

 

I am also attaching the tusc trace for this.

 

Would really appreciate if someone will be able to help me with this.

 

 

Regards

 

Soumendu

 

Attachment (trace.zip): application/octet-stream, 140 KiB

---------------------------------------------------------------------
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 <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org
ricardo13 | 1 Oct 14:28 2009
Picon

Re: Connection Reset


HI Steve,

I'm using a script called AutoBench.
This software does benchmark distributed.
This is the site: http://www.xenoclast.org/autobench/

My web cluster has power servers (Quad Core, 2GB RAM) and I think that they
support that workload.
My web site is a PHP page and it does only a "loop for" until 20000.

Thank you
Ricardo

Steve-422 wrote:
> 
> Hi Ricardo,
> I found when I was doing my tests with httperf, I had to use multiple
> computers to do proper load testing because HTTPERF couldn't handle
> sending
> so many simultaneous connections. Through trail and error the best results
> I
> got was using only ~400 simultaneous requests firing from the software.
> Then
> I multiplied that same load test over many computers.
> 
> Steve
> 
> 2009/9/30 ricardo13 <ricardoogrande <at> gmail.com>
> 
>>
>> The error called "connreset".
>> This is a example.
>>
>> Total: connections 10000 requests 10000 replies 8952 test-duration
>> 136.478
>> s
>>
>> Connection rate: 73.3 conn/s (13.6 ms/conn, <=9387 concurrent
>> connections)
>> Connection time [ms]: min 1025.6 avg 38879.9 max 134963.6 median 33947.5
>> stddev 23360.4
>> Connection time [ms]: connect 16893.1
>> Connection length [replies/conn]: 1.000
>>
>> Request rate: 73.3 req/s (13.6 ms/req)
>> Request size [B]: 66.0
>>
>> Reply rate [replies/s]: min 0.0 avg 66.3 max 358.8 stddev 85.5 (27
>> samples)
>> Reply time [ms]: response 10972.9 transfer 9925.2
>> Reply size [B]: header 176.0 content 168814.0 footer 1.0 (total 168991.0)
>> Reply status: 1xx=0 2xx=8944 3xx=0 4xx=0 5xx=8
>>
>> CPU time [s]: user 19.45 system 117.03 (user 14.3% system 85.8% total
>> 100.0%)
>> Net I/O: 10829.5 KB/s (88.7*10^6 bps)
>>
>> Errors: total 1048 client-timo 0 socket-timo 0 connrefused 0 connreset
>> 1048
>> Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0
>>
>> Ricardo
>>
>>
>>
>>
>>
>>
>>
>> awarnier wrote:
>> >
>> > ricardo13 wrote:
>> >> Hi all,
>> >>
>> >> I'm submiting workload my web cluster using HTTPERF.
>> >> The result shows several errors about connection reset.
>> >>
>> >> My doubt is, when happen connection reset ??
>> >>
>> > Can you paste the *exact* error messages that you are seeing ?
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > 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 <at> httpd.apache.org
>> >    "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
>> > For additional commands, e-mail: users-help <at> httpd.apache.org
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Connection-Reset-tp25690236p25690360.html
>> Sent from the Apache HTTP Server - Users mailing list archive at
>> Nabble.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 <at> httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
>> For additional commands, e-mail: users-help <at> httpd.apache.org
>>
>>
> 
> 

--

-- 
View this message in context: http://www.nabble.com/Connection-Reset-tp25690236p25696839.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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 <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Alexander Müller | 1 Oct 15:50 2009
Picon

Re: mod_rewrite ignoring proxy flag

>>> On 01.10.2009 at 00:26, in message
<7A3D8EAA-2C62-444B-80E5-7C4EEC5FF95A <at> rcbowen.com>, Rich Bowen
<rbowen <at> rcbowen.com> wrote:

> 
> The first thing that comes to mind is that you have a Redirect header  
> being sent by the back-end. Make sure that you have a ProxyPassReverse  
> that matches the initial Proxy request so that redirects are  
> intercepted and fixed up.
> 
> In this case, SOMEPATH? is probably getting redirected to SOMEPATH/ 
> index.html?/ANOTHERPATH, for example.

Thank you very much Rich, this was the crucial hint .... ProxyPassReverse did it.

Thanks again!

Alexander

---------------------------------------------------------------------
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 <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Dan Yamins | 1 Oct 16:16 2009
Picon

interaction between apache and OSX 10.5.7 finder

Sorry for posting again, but I posted this a few days ago and got no responses.  but I think this is probably the right list ...

I have an apache virtual host for some local development I'm doing using python cgi scripts.

Here is a example script that should open a "Finder" window on the server if the server is running OSX, and an explorer window if it's running windows or cygwin.

-------
print 'Content-Type: text/html\n\n'
import os
import platform

if (platform.platform().startswith('Darwin') or platform.mac_ver()[0] != ''):
     os.system('open .')
elif platform.platform().startswith('Windows') or platform.platform().startswith('CYGWIN'):
     os.system('explorer .')
-------


This script works when run manually, e.g. not through Apache.  It also works on Windows and CYGWIN.   Also it used to work on OSX before I updated to from OS 10.5.6 to 10.5.7.  
Now, however it doesn't work on OSX.  Nothing happens when I load the page.


Similarly this script should open a text editor window if the server is OSX:

-------
print 'Content-Type: text/html\n\n'
import os
import platform

if (platform.platform().startswith('Darwin') or platform.mac_ver()[0] != ''):
     os.system('edit myfile.txt')
-------

It also used to work, but it also no longer does.  

If anyone can give me a clue as to what might be happening that would be great.

Thanks!
Dan




Danijel | 1 Oct 16:25 2009
Picon

HTTP/0.9 and mod_proxy

Hi,

I have to reverse proxy a beast which speaks HTTP/0.9. The documentation
to mod_proxy says:

	This module implements a proxy/gateway for Apache. It implements
	proxying capability for FTP, CONNECT (for SSL), HTTP/0.9,
        HTTP/1.0, and HTTP/1.1.

The configuration simply is:

	ProxyPass / http://backend:9110/

But all I get is error 502. The log says: 

	error reading status line from remote server backend

The tcpdump between Apache and the backend looks like this:

	GET /test HTTP/1.0
	Host: backend:9110
	User-Agent: curl/7.15.1 (x86_64-suse-linux) libcurl/7.15.1
	OpenSSL/0.9.8a zlib/1.2.3 libidn/0.6.0
	Accept: */*
	Max-Forwards: 10
	X-Forwarded-For: 127.0.0.1
	X-Forwarded-Host: localhost:4080
	X-Forwarded-Server: localhost

	<html><head/><body>AS2 Adapter is alive.</body></html>

Also I've looked into the code:

    while (received_continue) {
        apr_brigade_cleanup(bb);

        len = ap_getline(buffer, sizeof(buffer), rp, 0);
        if (len == 0) {
            /* handle one potential stray CRLF */
            len = ap_getline(buffer, sizeof(buffer), rp, 0);
        }
        if (len <= 0) {
            apr_socket_close(p_conn->sock);
            backend->connection = NULL;
            ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
                          "proxy: error reading status line from remote "
                          "server %s", p_conn->name);
            return ap_proxyerror(r, HTTP_BAD_GATEWAY,
                                 "Error reading from remote server");
        }

So, the error is raised when len is <= 0. So, why is len <= 0 with the input
above?

-Danijel

---------------------------------------------------------------------
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 <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org


Gmane