[EMAIL PROTECTED] How to make Apache 2.x as Forwarding server?

2008-07-25 Thread Anand Kulkarni
Hi,
 
I have client/server architecture. I want to introduce Apache server in
between that will receive request from client, forward it to server then
take response from server and give it back to the client. There is no
load balancing or complex processing here.
 
How can I implement this simple requirement without using mod_proxy?
 
-Anand
 


RE: [EMAIL PROTECTED] Any replacement of mod_proxy?

2008-07-17 Thread Anand Kulkarni
Hi,

>> Because we have many TCP servers running and using mod_proxy we want 
>> to route client request to the specific one.

>> Also using Apache as proxy, we can get benefit of different services.

>Sorry, this explanation is not enough. What kind of tcp servers are
they and what clients connect to them? What protocol do they use?

It is a pure java application. We have developed TCP Server & TCP client
using Java's standard java.net.SocketServer & java.net.Socket classes.
Kindly refer to the URL
http://www.javafaq.nu/java-example-code-classes-1894.html

-Anand


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] Any replacement of mod_proxy?

2008-07-17 Thread Anand Kulkarni
Hi,

>> We have already developed an application where TCP-client
communicates 
>> with TCP-Server. Its working fine.
>> 
>> But now we want to introduce some proxy server in between.

> why?


Because we have many TCP servers running and using mod_proxy we want to
route client request to the specific one.

Also using Apache as proxy, we can get benefit of different services.


>> Hence, we are trying Apache mod_proxy module.
>> 
>> Is it wrong to use mod_proxy in this scenario?

>> If YES, then Is there any
>> other possbile way of introducing proxy in between?

>simple tcp redirector or evan NAT probably. Highly depends on answer to
my previous question

What is NAT. We want only open source proxy servers. If you know
anything please let us know.

Anand


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] Any replacement of mod_proxy?

2008-07-17 Thread Anand Kulkarni
Hi,

>>
>> We have used mod_proxy in our project for configuring proxy server 
>> between TCP client and TCP server. But, mod_proxy has not been able
to 
>> forward the complete client data to the server.
>
>> I think it is a bug with mod_proxy. We have another option called 
>> mod_athena. In that also it did not work.
>>
>> Is there any replacement of mod_proxy in Apache?

> The correct question to ask is why you want to use Apache as a TCP
proxy...

> Krist


We have already developed an application where TCP-client communicates
with TCP-Server. Its working fine.

But now we want to introduce some proxy server in between. Hence, we are
trying Apache mod_proxy module.

Is it wrong to use mod_proxy in this scenario? If YES, then Is there any
other possbile way of introducing proxy in between?

-Anand


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Any replacement of mod_proxy?

2008-07-16 Thread Anand Kulkarni
Hi,
 
We have used mod_proxy in our project for configuring proxy server
between TCP client and TCP server. But, mod_proxy has not been able to
forward the complete client data to the server.
 
I think it is a bug with mod_proxy. We have another option called
mod_athena. In that also it did not work.
 
Is there any replacement of mod_proxy in Apache?
 
-Anand
 


[EMAIL PROTECTED] Bugs of mod_proxy

2008-07-16 Thread Anand Kulkarni
Hi,
 
Are there any well known bugs from mod_proxy module?
 
regards,
 
Anand
 


RE: [EMAIL PROTECTED] How to configure Apache 2.x for HTTP 1.0 version?

2008-07-14 Thread Anand Kulkarni
Hi,

I want HTTP 1.0 protocol because I heard that passing content length in
HTTP 1.0 request is not mandatory.

In my application, the client does not know the length of data to be
sent to server through Apache as proxy. When I switched to HTTP 1.0
still its forcing content length in the request.

Do you know how to send dynamic data from client without specifying
content length?

Anand


-Original Message-
From: Sander Temme [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2008 11:01 AM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] How to configure Apache 2.x for HTTP 1.0
version?



On Jul 14, 2008, at 9:05 PM, Anand Kulkarni wrote:

> I am working on Apache 2.x. The default protcol followed is HTTP
> 1.1. But HTTP 1.1 is a persistent protocol and hence I want Apache 
> to follow HTTP 1.0 protocol.

What do you mean by 'persistent'?

> So, How to configure Apache 2.x for HTTP 1.0 version?


Keepalives off

work for you?  That gets you rid of the Keepalive feature without 
doing away with the rest of the protocol features.

S.

--
Sander Temme
[EMAIL PROTECTED]
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF







[EMAIL PROTECTED] How to override Apache default headers?

2008-07-14 Thread Anand Kulkarni
Hi,
 
I am using mod_proxy to establish proxy communication between TCP client
and TCP server.
 
When I send request from client to server through Apache as proxy,
Apache adds the following headers automatically:
 
POST / HTTP/1.1
Host: 192.168.56.17:9801
X-Forwarded-For: 192.168.56.17
X-Forwarded-Server:   www.abc.com
Connection: Keep-Alive
Content-Length: [Specified from client side]
 
How can I ask Apache not to send such headers to the TCP server?
 
-Anand
 
 
 


[EMAIL PROTECTED] How to configure Apache 2.x for HTTP 1.0 version?

2008-07-14 Thread Anand Kulkarni
Hi,
 
I am working on Apache 2.x. The default protcol followed is HTTP 1.1.
But HTTP 1.1 is a persistent protocol and hence I want Apache to follow
HTTP 1.0 protocol.
 
So, How to configure Apache 2.x for HTTP 1.0 version?
 
-Anand
 


[EMAIL PROTECTED] How to customize Apache Headers?

2008-07-10 Thread Anand Kulkarni
Hi,
 
I am sending many requests from TCP client to Apache. Using mod_proxy it
will be routed to the destinition server.
 
In every client request, I want to send different HTTP headers but I
found that Apache adds its own headers and does not allow client to set
request specific headers.
 
So, my question is How to customize Apache Headers from the client side?
 
regards,
 
Anand
 


[EMAIL PROTECTED] MOD_PROXY a strange problem!!!

2008-07-10 Thread Anand Kulkarni
Hi,
 
I have a TCP client-server application written in Java using the
standard socket APIs.
 
Now, I want to introduce Apache as the proxy server between them. And
hence I am using the mod_proxy module.
 
The communication among client, apache and server is properly being
established but facing a strange problem. 
 
Here the client wants to send many requests, so I am writing the code
as:
 
CLIENT:
 
/** 1st Request [START] **/
contentLength = 6.
out.writeBytes("A");
out.writeBytes("B");
out.writeBytes("C");
out.flush();
/** 1st Request [END] **/
 
/** 2nd Request [START] **/
contentLength = 6.
out.writeBytes("P");
out.writeBytes("Q");
out.writeBytes("R");
out.flush();
/** 2nd Request [END] **/
 
/** 3rd Request [START] **/
contentLength = 6.
out.writeBytes("X");
out.writeBytes("Y");
out.writeBytes("Z");
out.flush();
/** 3rd Request [END] **/
 
out.close();
 
 
The request properly goes to Apache without any exception on client
side. 
But the server receives very data only for 2 requests:
 
SERVER:
 
POST / HTTP/1.1
Host: 192.168.56.17:9801
X-Forwarded-For: 192.168.56.17
X-Forwarded-Server:   www.pavan.com
Connection: Keep-Alive
Content-Length: 6
 
ABC
PQR
 
This is because of content length is 6. If I increase it to 9 then it
works perfectly.
 
See here every request is sending its content length. But apache
considers all 3 requests as the part of single request.
 
How to convince Apache that the client wants to make 3 separate
requests?
 
Waitng for the reply.
regards,
 
Anand
 
 


RE: [EMAIL PROTECTED] Unabling Chunked encoding in Apache

2008-06-25 Thread Anand Kulkarni
Hi,

I have tried for Apache 2.2 as well but it did not work.

You may give me solution for any Apache version.

-Anand


-Original Message-
From: Nick Kew [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2008 4:39 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Unabling Chunked encoding in Apache


On Wed, 25 Jun 2008 16:37:20 +0530
"Anand Kulkarni" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I have also seen about chunk data at 
> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

Documents for 2.2.

> For Apache 2.0.63, inside httpd.conf file I set the environment:

don't necessarily apply to 2.0.

Upgrade!


-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

-
The official User-To-User support forum of the Apache HTTP Server
Project. See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] Unabling Chunked encoding in Apache

2008-06-25 Thread Anand Kulkarni

Hi,

I got a desktop client application that sends HTTP request to Apache
using HTTP tunneling. See the sample code at:
http://java.sun.com/j2se/1.5.0/docs/guide/security/jsse/samples/sockets/
client/SSLSocketClientWithTunneling.java

The data is sent using POST method (I tried for GET as well).

I am sending a plain text data so the content type is text/plain.

-Anand


-Original Message-
From: André Warnier [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2008 4:23 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Unabling Chunked encoding in Apache


Sorry...
I did not read the OP's question well enough, and failed to click that 
he was talking about sending large chunks of data from client TO Apache 
server.  My mistake, I apologise.

To the original poster :

Could you explain a little bit about the client who is sending the data
?
- what kind of client is that ?
- how is it sending it ? via a POST ?

I mean, are you talking about a browser with an html form with a  or about something else ?

Thanks
André



André Warnier wrote:
> I could swear that I saw something about that in the mod_proxy
> documentation on the Apache site.
> 
> Anand Kulkarni wrote:
>> Hi,
>>  
>> I want to send large amount of data from client to server through 
>> Apache. hence, I am using Apache as proxy using the standard 
>> mod_proxy module.
>>  
>> Client does not know the length of data to be sent and hence can not 
>> set the content length value.
>>  
>> So, how can I send this large data without knowing its size. I heard 
>> of Chunked Data concept. How shall I introduce this concept in 
>> Apache?
>>  
>> Waiting for the reply.
>> regards,
>>  
>> Anand
>>  
>>
> 
> -
> The official User-To-User support forum of the Apache HTTP Server 
> Project. See http://httpd.apache.org/userslist.html> for more 
> info. To unsubscribe, e-mail: [EMAIL PROTECTED]
>   "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
The official User-To-User support forum of the Apache HTTP Server
Project. See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] Unabling Chunked encoding in Apache

2008-06-25 Thread Anand Kulkarni
Hi,

I have also seen about chunk data at
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

Refer to the section "Request Bodies" & "Reverse Proxy Request Headers".


For Apache 2.0.63, inside httpd.conf file I set the environment:

SetEnv proxy-sendchunked 1

But it did not work. Have somebody implemented this concept?

-Anand


-Original Message-
From: André Warnier [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2008 4:12 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Unabling Chunked encoding in Apache


I could swear that I saw something about that in the mod_proxy 
documentation on the Apache site.

Anand Kulkarni wrote:
> Hi,
>  
> I want to send large amount of data from client to server through 
> Apache. hence, I am using Apache as proxy using the standard mod_proxy

> module.
>  
> Client does not know the length of data to be sent and hence can not 
> set the content length value.
>  
> So, how can I send this large data without knowing its size. I heard 
> of Chunked Data concept. How shall I introduce this concept in Apache?
>  
> Waiting for the reply.
> regards,
>  
> Anand
>  
> 

-
The official User-To-User support forum of the Apache HTTP Server
Project. See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Unabling Chunked encoding in Apache

2008-06-25 Thread Anand Kulkarni
Hi,
 
I want to send large amount of data from client to server through
Apache. hence, I am using Apache as proxy using the standard mod_proxy
module.
 
Client does not know the length of data to be sent and hence can not set
the content length value.
 
So, how can I send this large data without knowing its size. I heard of
Chunked Data concept. How shall I introduce this concept in Apache?
 
Waiting for the reply.
regards,
 
Anand
 


[EMAIL PROTECTED] MOD_PROXY not working!!!

2008-06-24 Thread Anand Kulkarni
Hi,
 
I am working on mod_proxy module for Apache 2.2.8. My client is sending
5 HTTP messages to Apache. 
 
It is expected that the Apache will forward those messages to actual
server. But, Apache just forwards the first message. Here is the message
printed on server console:
 
POST / HTTP/1.1

Host: 192.168.56.17:9802

X-Forwarded-For: 192.168.56.17

X-Forwarded-Server: www.pavan.com

Connection: Keep-Alive

Content-Length: 329

-fvn0gnrookl

DataRecord===com.fxall.ems.infra.EMSDataRecord{USER_ID=Anand,EVENT_ID
=1000}===

Content-Type: text/plain 

-fvn0gnrookl--

POST / HTTP/1.0 Content-type: text/plain;
boundary=---xagueiifv29

Content-length: 329

-

 

Can you please tell me how I can receive all 5 messages to server
console?

regards,

Anand