Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

Use of assignment to $[ is deprecated at /usr/local/sbin/apxs line 86. , wwwxxx vim, mysql closing table and opening table, 800c5000, setgid operation not permitted, pciehp: acpi_pciehprm on IBM, WWWXXX.DBF, 078274121, info0a ip, should prodicers of software_based services be held liable or not liable for economic injuries

Links

XODOX
Impressum

#1: using Apache server as proxy.

Posted on 2007-03-04 15:36:06 by Rostislav Khaskin

--0-1411165042-1173018966=:16997
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Good day to all. I have minimal experience with Apache, please help me=
out here.=0AI am running Windows XP. My web apps are deployed on JBOSS ser=
ver. Because I host multiple apps on multiple servers=0AI have Apache serve=
r listening on port 80 and redirecting to a corresponding jboss instance an=
d webapp.=0AHere is how I have it in httpd-vhosts.conf: <VirtualHost *=
:80>=0A ProxyPreserveHost On=0A ServerName floridamakler.no-ip.info=0A P=
roxyPass / http://192.168.2.100:7070/ =0A ProxyPassReverse / http://192.=
168.2.100:7070/=0A</VirtualHost> Everything works, except when I try t=
o read remotehost address in my app, I get 92.168.2.100. How can I mak=
e it keep the original address? Thank you. =0A =0A___=
____________________________________________________________ _______________=
______=0AFinding fabulous fares is fun. =0ALet Yahoo! FareChase search you=
r favorite travel sites to find flight and hotel bargains.=0Ahttp://farecha=
se.yahoo.com/promo-generic-14795097
--0-1411165042-1173018966=:16997
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<html><head><style type=3D"text/css"><!-- DIV {margin:0px;} --></style></he=
ad><body><div style=3D"font-family:times new roman, new york, times, serif;=
font-size:12pt"><div>Good day to all.<br><br>I have minimal experience with=
Apache, please help me out here.<br>I am running Windows XP. My web apps a=
re deployed on JBOSS server. Because I host multiple apps on multiple serve=
rs<br>I have Apache server listening on port 80 and redirecting to a corres=
ponding jboss instance and webapp.<br>Here is how I have it in httpd-vhosts=
..conf:<br><br>&lt;VirtualHost *:80&gt;<br>&nbsp; ProxyPreserveHost On<br>&n=
bsp; ServerName floridamakler.no-ip.info<br><span>&nbsp; ProxyPass&nbsp; / =
<a target=3D"_blank" href=3D"http://192.168.2.100:7070/">http://192.168.2.1=
00:7070/</a> </span><br><span>&nbsp; ProxyPassReverse&nbsp; / <a target=3D"=
_blank" href=3D"http://192.168.2.100:7070/">http://192.168.2.100:707 0/</a><=
/span><br>&lt;/VirtualHost&gt;<br><br>Everything works, except when I try t=
o read remotehost address
in my app, I get 92.168.2.100.<br><br>How can I make it keep the original =
address?<br><br>Thank you.<br><br><br></div></div><br> <hr size=3D1>No=
need to miss a message. <a href=3D"http://us.rd.yahoo.com/evt=3D43910/*htt=
p://mobile.yahoo.com/mail=0A">Get email on-the-go </a><br>with Yahoo! Mail =
for Mobile. <a href=3D"http://us.rd.yahoo.com/evt=3D43910/*http://mobile.ya=
hoo.com/mail=0A">Get started.</a></body></html>
--0-1411165042-1173018966=:16997--

Report this message

#2: Re: using Apache server as proxy.

Posted on 2007-03-04 16:05:16 by Sander Temme

--Apple-Mail-4--707494605
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed


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.

S.

--
sctemme@apache.org http://www.temme.net/sander/
PGP FP: 51B4 8727 466A 0BC3 69F4 B7B8 B2BE BC40 1529 24AF



--Apple-Mail-4--707494605
Content-Transfer-Encoding: base64
Content-Type: application/pkcs7-signature;
name=smime.p7s
Content-Disposition: attachment;
filename=smime.p7s

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEH AQAAoIIGPDCCAvUw
ggJeoAMCAQICEAIyF6zjtP6rQ//mXTcll14wDQYJKoZIhvcNAQEEBQAwYjEL MAkGA1UEBhMC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apple-Mail-4--707494605--

Report this message

#3: Re: using Apache server as proxy.

Posted on 2007-03-04 16:34:05 by wrowe

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

Report this message

#4: Re: using Apache server as proxy.

Posted on 2007-03-05 02:27:06 by Rostislav Khaskin

--0-2132443867-1173058026=:85632
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

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 jbo=
ss, 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 Proxy=
PassReverse. The documentation is very confusing and this is my first expos=
ure to apache. If you could give me some instruction here, I would apprecia=
te it. It looks like my initial message went out without the code I ha=
ve in http-vhosts.conf. Here is what I have inside VirtualHost tag:=0A Pro=
xyPreserveHost On=0A ServerName floridamakler.no-ip.info=0A ProxyPass / =
http://192.168.2.100:7070/ =0A ProxyPassReverse / http://192.168.2.100:70=
70/=0AI hope you could tell me an alternate way of creating this configurat=
ion. =0A----- Original Message ----=0AFrom: "William A. R=
owe, Jr." <wrowe@rowe-clan.net>=0ATo: users@httpd.apache.org=0ASent: Sunday=
, March 4, 2007 10:34:05 AM=0ASubject: Re: [users@httpd] using Apache serve=
r as proxy. Sander Temme wrote:=0A> =0A> On Mar 4, 2007, at 6:36 AM, R=
ostislav Khaskin wrote:=0A> =0A>> Everything works, except when I try to re=
ad remotehost address in my=0A>> app, I get 92.168.2.100.=0A>>=0A>> How can=
I make it keep the original address?=0A> =0A> The proxy server stores it i=
n the X-Forwarded-For header. Your app=0A> should have access to that.=0A=
=0AWhat I think is happening is that your app reports it's address at=0A92.=
168.2.100 - but you told it to fix ONLY address:7070 - fix that=0Aor fix th=
e ProxyPassReverse statement. And remember it's only fixing=0Aheaders - yo=
ur CONTENT won't be corrected (mod_proxy_html can do that.) ----------=
-----------------------------------------------------------= 0AThe official =
User-To-User support forum of the Apache HTTP Server Project.=0ASee <URL:ht=
tp://httpd.apache.org/userslist.html> for more info.=0ATo unsubscribe, e-ma=
il: users-unsubscribe@httpd.apache.org=0A " from the digest: users-dige=
st-unsubscribe@httpd.apache.org=0AFor additional commands, e-mail: users-he=
lp@httpd.apache.org =0A =0A_________________________=
___________________________________________________________= 0ADo you Yahoo!=
?=0AEveryone is raving about the all-new Yahoo! Mail beta.=0Ahttp://new.mai=
l.yahoo.com
--0-2132443867-1173058026=:85632
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<html><head><style type=3D"text/css"><!-- DIV {margin:0px;} --></style></he=
ad><body><div style=3D"font-family:times new roman, new york, times, serif;=
font-size:12pt"><div style=3D"font-family: times new roman,new york,times,s=
erif; font-size: 12pt;">Thank you for your replies.<br><br>Sander, X-Forwar=
ded-For will not work for me. I need a way to configure apache server to ro=
ute the request to the jboss, which&nbsp; should not know nor care how the =
request is passed to it. <br><br>William, sorry I didn't quite understand h=
ow should I fix port and/or ProxyPassReverse. The documentation is very con=
fusing and this is my first exposure to apache. If you could give me some i=
nstruction here, I would appreciate it.<br><br>It looks like my initial mes=
sage went out without the code I have in http-vhosts.conf. Here is what I h=
ave inside VirtualHost tag:<br>&nbsp; ProxyPreserveHost On<br>&nbsp; Server=
Name floridamakler.no-ip.info<br><span>&nbsp; ProxyPass&nbsp; / <a target=
=3D"_blank"
href=3D"http://192.168.2.100:7070/">http://192.168.2.100:707 0/</a> </span>=
<br><span>&nbsp; ProxyPassReverse&nbsp; / <a target=3D"_blank" href=3D"http=
://192.168.2.100:7070/">http://192.168.2.100:7070/</a></span><br>I hope you=
could tell me an alternate way of creating this configuration. <br><br><br=
><br><br><br><br><div style=3D"font-family: times new roman,new york,times,=
serif; font-size: 12pt;">----- Original Message ----<br>From: "William A. R=
owe, Jr." &lt;wrowe@rowe-clan.net&gt;<br>To: users@httpd.apache.org<br>Sent=
: Sunday, March 4, 2007 10:34:05 AM<br>Subject: Re: [users@httpd] using Apa=
che server as proxy.<br><br><div>Sander Temme wrote:<br>&gt; <br>&gt; On Ma=
r 4, 2007, at 6:36 AM, Rostislav Khaskin wrote:<br>&gt; <br>&gt;&gt; Everyt=
hing works, except when I try to read remotehost address in my<br>&gt;&gt; =
app, I get 92.168.2.100.<br>&gt;&gt;<br>&gt;&gt; How can I make it keep the=
original address?<br>&gt; <br>&gt; The proxy server stores it in the X-For=
warded-For header.
Your app<br>&gt; should have access to that.<br><br>What I think is happen=
ing is that your app reports it's address at<br>92.168.2.100 - but you told=
it to fix ONLY address:7070 - fix that<br>or fix the ProxyPassReverse stat=
ement.&nbsp;&nbsp;And remember it's only fixing<br>headers - your CONTENT w=
on't be corrected (mod_proxy_html can do that.)<br><br>--------------------=
-------------------------------------------------<br>The official User-To-U=
ser support forum of the Apache HTTP Server Project.<br>See &lt;URL:<a targ=
et=3D"_blank" href=3D"http://httpd.apache.org/userslist.html">http://httpd .=
apache.org/userslist.html</a>&gt; for more info.<br>To unsubscribe, e-mail:=
users-unsubscribe@httpd.apache.org<br>&nbsp;&nbsp; "&nbsp;&nbsp; from the =
digest: users-digest-unsubscribe@httpd.apache.org<br>For additional command=
s, e-mail: users-help@httpd.apache.org<br><br></div></div><br></div></div><=
br> <hr size=3D1><a href=3D"=0Ahttp://us.rd.yahoo.com/evt=3D49981/*htt=
p://advision.webevents.yahoo.com/mailbeta/features_spam.html ">Sucker-punch =
spam</a> with award-winning protection.<br> Try the <a href=3D"=0Ahttp://us=
..rd.yahoo.com/evt=3D49981/*http://advision.webevents.yahoo. com/mailbeta/fea=
tures_spam.html">free Yahoo! Mail Beta.</a></body></html>
--0-2132443867-1173058026=:85632--

Report this message