Proxying the protocol...

This is a multi-part message in MIME format.

------=_NextPart_000_0050_01C31628.986F26B0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hey all. I have been researching and experimenting with this and have
not yet found a way to do it with either mod_rewrite or mod_proxy.

I have about 25 virtual hosts all with their own ssl keys. I want to
proxy them all through apache to JBoss and then have JBoss proxy content
from Zope.

The problem I am having is that I have a portlet-streamer tool which I
wrote and open-sourced which will rewrite the content links from zope
according to a configuration file which works very similar to
mod_rewrite (which I used as a guide). I have no problems except when I
try to determine what the original protocol was.

When using mod_proxy, I can use apache 2.0 and use the ProxyPreserveHost
directive to get the host from the request, or I can simply pull it from
the x-forward-host header property using my rewrite tool. Unfortunately
nothing in the request or the header tells me if the request was via
http or via https.

Is there any way to tell the target host the original protocol via a
header variable or a directive?

------=_NextPart_000_0050_01C31628.986F26B0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml [at] 01C31627.BF7928B0">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
span.EmailStyle17
{mso-style-type:personal;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:navy;}
[at] page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>H</span></font><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>ey all.<span
style=3D'mso-spacerun:yes'>  </span>I have been researching and
experimenting with this and have not yet found a way to do it with =
either
mod_rewrite or mod_proxy.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I have about 25 virtual hosts all with their own ssl
keys.<span style=3D'mso-spacerun:yes'>  </span>I want to proxy them =
all
through apache to JBoss and then have JBoss proxy content from =
Zope.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The problem I am having is that I have a =
portlet-streamer
tool which I wrote and open-sourced which will rewrite the content links =
from
zope according to a configuration file which works very similar to =
mod_rewrite
(which I used as a guide).<span style=3D'mso-spacerun:yes'>  =
</span>I have
no problems except when I try to determine what the original protocol =
was.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>When using mod_proxy, I can use apache 2.0 and use =
the
ProxyPreserveHost directive to get the host from the request, or I can =
simply
pull it from the x-forward-host header property using my rewrite =
tool.<span
style=3D'mso-spacerun:yes'>  </span>Unfortunately nothing in the =
request or
the header tells me if the request was via http or via =
https.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Is there any way to tell the target host the original
protocol via a header variable or a =
directive?<o:p></o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0050_01C31628.986F26B0--
Matt Gregory [ Fr, 09 Mai 2003 18:43 ] [ ID #12338 ]

Re: Proxying the protocol...

> When using mod_proxy, I can use apache 2.0 and use the ProxyPreserveHost
> directive to get the host from the request, or I can simply pull it from
> the x-forward-host header property using my rewrite tool. Unfortunately
> nothing in the request or the header tells me if the request was via
> http or via https.
>
> Is there any way to tell the target host the original protocol via a
> header variable or a directive?

In Apache 2, you can set a header in the request with any environment
variable (see RequestHeader directive). Enable SSL environment variables,
then add a header with the HTTPS variable, which will tell you if the
request is secure or not. other variables you may be interested on:

http://www.modssl.org/docs/2.8/ssl_reference.html#ToC25

Cheers

Daniel

--
Teach Yourself Apache 2 -- http://apacheworld.org/ty24/
Daniel Lopez [ So, 11 Mai 2003 12:35 ] [ ID #12339 ]

RE: Proxying the protocol...

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C3188E.3298A5C0
Content-Type: text/plain

Why don't you add your own custom header to the request?

-----Original Message-----
From: Matt Gregory [mailto:matt.gregory [at] skyleach.com]
Sent: Friday, May 09, 2003 12:44 PM
To: modproxy-dev [at] apache.org
Subject: Proxying the protocol...

Hey all. I have been researching and experimenting with this and have not
yet found a way to do it with either mod_rewrite or mod_proxy.

I have about 25 virtual hosts all with their own ssl keys. I want to proxy
them all through apache to JBoss and then have JBoss proxy content from
Zope.

The problem I am having is that I have a portlet-streamer tool which I wrote
and open-sourced which will rewrite the content links from zope according to
a configuration file which works very similar to mod_rewrite (which I used
as a guide). I have no problems except when I try to determine what the
original protocol was.

When using mod_proxy, I can use apache 2.0 and use the ProxyPreserveHost
directive to get the host from the request, or I can simply pull it from the
x-forward-host header property using my rewrite tool. Unfortunately nothing
in the request or the header tells me if the request was via http or via
https.

Is there any way to tell the target host the original protocol via a header
variable or a directive?

------_=_NextPart_001_01C3188E.3298A5C0
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml [at] 01C3186C.CED53640">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
[at] font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:553679495 -2147483648 8 0 66047 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
span.EmailStyle17
{mso-style-type:personal;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:navy;}
span.EmailStyle19
{mso-style-type:personal-reply;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:navy;}
[at] page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Why don't you add your own custom
header to the request?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>=


<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original =
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> Matt Gregory
[mailto:matt.gregory [at] skyleach.com] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Friday, May 09, =
2003 12:44
PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
modproxy-dev [at] apache.org<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Proxying the =
protocol...</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
color=3Dnavy face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>H</span></font><=
font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>ey all.<span
style=3D'mso-spacerun:yes'>  </span>I have been researching and =
experimenting
with this and have not yet found a way to do it with either mod_rewrite =
or
mod_proxy.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></f=
ont></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I have about 25 virtual =
hosts all
with their own ssl keys.<span style=3D'mso-spacerun:yes'>  =
</span>I want to proxy
them all through apache to JBoss and then have JBoss proxy content from =
Zope.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></f=
ont></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>The problem I am having is =
that I
have a portlet-streamer tool which I wrote and open-sourced which will =
rewrite
the content links from zope according to a configuration file which =
works very
similar to mod_rewrite (which I used as a guide).<span
style=3D'mso-spacerun:yes'>  </span>I have no problems except when =
I try to
determine what the original protocol was.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></f=
ont></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>When using mod_proxy, I =
can use
apache 2.0 and use the ProxyPreserveHost directive to get the host from =
the
request, or I can simply pull it from the x-forward-host header =
property using
my rewrite tool.<span style=3D'mso-spacerun:yes'>  =
</span>Unfortunately nothing
in the request or the header tells me if the request was via http or =
via https.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></f=
ont></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Is there any way to tell =
the target
host the original protocol via a header variable or a =
directive?<o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C3188E.3298A5C0--
Juan Rivera [ Mo, 12 Mai 2003 15:56 ] [ ID #12340 ]

RE: Proxying the protocol...

This is a multi-part message in MIME format.

------=_NextPart_000_013E_01C3189E.98D57050
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Also: I have not validated Apache 2.0 for work yet. We are still using
apache 1.3.27

-----Original Message-----
From: Juan Rivera [mailto:Juan.Rivera [at] citrix.com]
Sent: Monday, May 12, 2003 9:56 AM
To: 'modproxy-dev [at] apache.org'
Subject: RE: Proxying the protocol...

Why don't you add your own custom header to the request?

-----Original Message-----
From: Matt Gregory [mailto:matt.gregory [at] skyleach.com]
Sent: Friday, May 09, 2003 12:44 PM
To: modproxy-dev [at] apache.org
Subject: Proxying the protocol...

Hey all. I have been researching and experimenting with this and have
not yet found a way to do it with either mod_rewrite or mod_proxy.

I have about 25 virtual hosts all with their own ssl keys. I want to
proxy them all through apache to JBoss and then have JBoss proxy content
from Zope.

The problem I am having is that I have a portlet-streamer tool which I
wrote and open-sourced which will rewrite the content links from zope
according to a configuration file which works very similar to
mod_rewrite (which I used as a guide). I have no problems except when I
try to determine what the original protocol was.

When using mod_proxy, I can use apache 2.0 and use the ProxyPreserveHost
directive to get the host from the request, or I can simply pull it from
the x-forward-host header property using my rewrite tool. Unfortunately
nothing in the request or the header tells me if the request was via
http or via https.

Is there any way to tell the target host the original protocol via a
header variable or a directive?

------=_NextPart_000_013E_01C3189E.98D57050
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml [at] 01C3189E.987F8820">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
[at] font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
span.EmailStyle17
{mso-style-type:personal;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:navy;}
span.EmailStyle19
{mso-style-type:personal;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:navy;}
span.EmailStyle20
{mso-style-type:personal-reply;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:navy;}
span.SpellE
{mso-style-name:"";
mso-spl-e:yes;}
[at] page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Also: I have not validated Apache =
2.0 for
work yet.<span style=3D'mso-spacerun:yes'>  </span>We are still =
using apache
1.3.27<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original =
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> Juan Rivera
[mailto:Juan.Rivera [at] citrix.com] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Monday, May 12, =
2003 9:56 AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
'modproxy-dev [at] apache.org'<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> RE: Proxying the
protocol...</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
color=3Dnavy face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Why don't you =
add your
own custom header to the request?<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
color=3Dnavy face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p>=
</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original =
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> Matt Gregory
[mailto:matt.gregory [at] skyleach.com] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Friday, May 09, =
2003 12:44
PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
modproxy-dev [at] apache.org<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Proxying the =
protocol...</span></font><o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>H</span></font><f=
ont
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>ey all.<span
style=3D'mso-spacerun:yes'>  </span>I have been researching and
experimenting with this and have not yet found a way to do it with =
either
mod_rewrite or mod_proxy.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></fo=
nt></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I have about 25 virtual =
hosts all
with their own ssl keys.<span style=3D'mso-spacerun:yes'>  </span>I =
want to
proxy them all through apache to JBoss and then have JBoss proxy content =
from
Zope.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></fo=
nt></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>The problem I am having is =
that I
have a portlet-streamer tool which I wrote and open-sourced which will =
rewrite
the content links from zope according to a configuration file which =
works very
similar to mod_rewrite (which I used as a guide).<span
style=3D'mso-spacerun:yes'>  </span>I have no problems except when =
I try to
determine what the original protocol was.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></fo=
nt></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>When using mod_proxy, I can =
use
apache 2.0 and use the ProxyPreserveHost directive to get the host from =
the
request, or I can simply pull it from the x-forward-host header property =
using
my rewrite tool.<span style=3D'mso-spacerun:yes'>  =
</span>Unfortunately
nothing in the request or the header tells me if the request was via =
http or
via https.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></fo=
nt></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Is there any way to tell =
the target
host the original protocol via a header variable or a =
directive?<o:p></o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_013E_01C3189E.98D57050--
Matt Gregory [ Mo, 12 Mai 2003 21:53 ] [ ID #12341 ]

RE: Proxying the protocol...

This is a multi-part message in MIME format.

------=_NextPart_000_0139_01C3189E.56F14E20
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Because I don't know how. I haven't found a way to add custom header
variables via mod_rewrite or mod_proxy. Is there another apache module
that will do this?

-----Original Message-----
From: Juan Rivera [mailto:Juan.Rivera [at] citrix.com]
Sent: Monday, May 12, 2003 9:56 AM
To: 'modproxy-dev [at] apache.org'
Subject: RE: Proxying the protocol...

Why don't you add your own custom header to the request?

-----Original Message-----
From: Matt Gregory [mailto:matt.gregory [at] skyleach.com]
Sent: Friday, May 09, 2003 12:44 PM
To: modproxy-dev [at] apache.org
Subject: Proxying the protocol...

Hey all. I have been researching and experimenting with this and have
not yet found a way to do it with either mod_rewrite or mod_proxy.

I have about 25 virtual hosts all with their own ssl keys. I want to
proxy them all through apache to JBoss and then have JBoss proxy content
from Zope.

The problem I am having is that I have a portlet-streamer tool which I
wrote and open-sourced which will rewrite the content links from zope
according to a configuration file which works very similar to
mod_rewrite (which I used as a guide). I have no problems except when I
try to determine what the original protocol was.

When using mod_proxy, I can use apache 2.0 and use the ProxyPreserveHost
directive to get the host from the request, or I can simply pull it from
the x-forward-host header property using my rewrite tool. Unfortunately
nothing in the request or the header tells me if the request was via
http or via https.

Is there any way to tell the target host the original protocol via a
header variable or a directive?

------=_NextPart_000_0139_01C3189E.56F14E20
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml [at] 01C3189E.25336350">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
[at] font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
span.EmailStyle17
{mso-style-type:personal;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:navy;}
span.EmailStyle19
{mso-style-type:personal;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:navy;}
span.EmailStyle20
{mso-style-type:personal-reply;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:navy;}
span.SpellE
{mso-style-name:"";
mso-spl-e:yes;}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
[at] page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 color=3Dnavy =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Beca use I =
don’t
know how.</span></font></span><font size=3D2 color=3Dnavy =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><span
style=3D'mso-spacerun:yes'>  </span>I haven’t found a way to =
add custom
header variables via <span class=3DSpellE>mod_rewrite</span> or <span
class=3DSpellE>mod_proxy</span>.<span style=3D'mso-spacerun:yes'>  =
</span>Is there
another apache module that will do this?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original =
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> Juan Rivera
[mailto:Juan.Rivera [at] citrix.com] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Monday, May 12, =
2003 9:56 AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
'modproxy-dev [at] apache.org'<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> RE: Proxying the
protocol...</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
color=3Dnavy face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Why don't you =
add your
own custom header to the request?<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
color=3Dnavy face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p>=
</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original =
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> Matt Gregory
[mailto:matt.gregory [at] skyleach.com] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Friday, May 09, =
2003 12:44
PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
modproxy-dev [at] apache.org<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Proxying the =
protocol...</span></font><o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>H</span></font><f=
ont
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>ey all.<span
style=3D'mso-spacerun:yes'>  </span>I have been researching and =
experimenting
with this and have not yet found a way to do it with either mod_rewrite =
or
mod_proxy.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></fo=
nt></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I have about 25 virtual =
hosts all
with their own ssl keys.<span style=3D'mso-spacerun:yes'>  </span>I =
want to proxy
them all through apache to JBoss and then have JBoss proxy content from =
Zope.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></fo=
nt></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>The problem I am having is =
that I
have a portlet-streamer tool which I wrote and open-sourced which will =
rewrite
the content links from zope according to a configuration file which =
works very
similar to mod_rewrite (which I used as a guide).<span
style=3D'mso-spacerun:yes'>  </span>I have no problems except when =
I try to
determine what the original protocol was.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></fo=
nt></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>When using mod_proxy, I can =
use
apache 2.0 and use the ProxyPreserveHost directive to get the host from =
the
request, or I can simply pull it from the x-forward-host header property =
using
my rewrite tool.<span style=3D'mso-spacerun:yes'>  =
</span>Unfortunately nothing
in the request or the header tells me if the request was via http or via =
https.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></fo=
nt></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Is there any way to tell =
the target
host the original protocol via a header variable or a =
directive?<o:p></o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0139_01C3189E.56F14E20--
Matt Gregory [ Mo, 12 Mai 2003 21:51 ] [ ID #12342 ]

RE: Proxying the protocol...

Matt Gregory writes:
> Because I don't know how. I haven't found a way to add custom header
> variables via mod_rewrite or mod_proxy. Is there another apache module
> that will do this?
>

I maintain a set of patches for 1.3.2x mod_proxy that provide header
setting directives. They're mostly used in a reverse proxy context: so
ProxyRequestHeader sets headers in the request going to the backend
server(s), and ProxyResponseHeader sets headers in documents served to
clients.

Many sites have been using these patched mod_proxies in production
for two years or so (since 1.3.19).

http://allafrica.com/tools/apache/mod_proxy/

Kwin
Kwindla Hultman Krame [ Di, 13 Mai 2003 07:05 ] [ ID #12343 ]
Webserver » gmane.comp.apache.mod-proxy » Proxying the protocol...

Vorheriges Thema: Mod_Proxy Connection:Close Workaround?
Nächstes Thema: forward proxy on reverse proxy