Thank you for your replies.

Sander, X-Forwarded-For will not work for me. I need a way to configure apache 
server to route the request to the jboss, which  should not know nor care how 
the request is passed to it. 

William, sorry I didn't quite understand how should I fix port and/or 
ProxyPassReverse. The documentation is very confusing and this is my first 
exposure to apache. If you could give me some instruction here, I would 
appreciate it.

It looks like my initial message went out without the code I have in 
http-vhosts.conf. Here is what I have inside VirtualHost tag:
  ProxyPreserveHost On
  ServerName floridamakler.no-ip.info
  ProxyPass  / http://192.168.2.100:7070/ 
  ProxyPassReverse  / http://192.168.2.100:7070/
I hope you could tell me an alternate way of creating this configuration. 






----- Original Message ----
From: "William A. Rowe, Jr." <[EMAIL PROTECTED]>
To: [email protected]
Sent: Sunday, March 4, 2007 10:34:05 AM
Subject: Re: [EMAIL PROTECTED] using Apache server as proxy.

Sander Temme wrote:
> 
> On Mar 4, 2007, at 6:36 AM, Rostislav Khaskin wrote:
> 
>> Everything works, except when I try to read remotehost address in my
>> app, I get 92.168.2.100.
>>
>> How can I make it keep the original address?
> 
> The proxy server stores it in the X-Forwarded-For header. Your app
> should have access to that.

What I think is happening is that your app reports it's address at
92.168.2.100 - but you told it to fix ONLY address:7070 - fix that
or fix the ProxyPassReverse statement.  And remember it's only fixing
headers - your CONTENT won't be corrected (mod_proxy_html can do that.)

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

Reply via email to