Re: using Apache server as proxy.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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." <wrowe@xxxxxxxxxxxxx>
To: users@xxxxxxxxxxxxxxxx
Sent: Sunday, March 4, 2007 10:34:05 AM
Subject: Re: 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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux