Re: mod_layout and mod_proxy

No Bullshit XXX Host <[email protected]> Tue, 7 Apr 2009 17:33:54 -0400
Newsgroups gmane.comp.apache.mod-layout
Message-ID <[email protected]>
--===============8676305283485629165==
Content-Type: multipart/alternative; boundary=0016369202cb90ec5f0466fdc55c

--0016369202cb90ec5f0466fdc55c
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

although I've never dealt much with mod_proxy, I think mod_layout should be
able to do this for you.   try something like this:
        <Directory "/any/path/">
                AddOutputFilterByType LAYOUT text/html
                LayoutFooter /any/path/footer.html
                LayoutHeader /any/path/header.html
        </Directory>

can also just use that in your VirtualHost or whatever.   I'm not 100% sure
if this will work for you, but sometimes there aren't many people replying
to this list, so I thought I'd try.

On Tue, Apr 7, 2009 at 10:47 AM, Boris Dimitrov <[email protected]> wrote:

> Hello list , is there a way to configure mod_layout and mod_proxy to
> rewrite the html content of pages that users of my apache proxy server
> are viewing ?
> I have to do some banner advertise headers at every page user visit ,
> the proxy server will serve internet pages such google,myspace etc...
> I can't find useful information about this issue , the docs says nothing
> about LayoutProxy directive , when i turn it on my apache says :
>
> Invalid command 'LayoutProxy', perhaps misspelled or defined by a module
> not included in the server configuration
>
>
> OS : Debian Lenny
> Server version: Apache/2.2.9 (Debian)
> mod_layout version: 5.1
>
>
> Sorry for my poor english
> Thanks in advance
>
>
> _______________________________________________
> Mod_layout mailing list
> [email protected]
> http://lists.tangent.org/mailman/listinfo/mod_layout
>

--0016369202cb90ec5f0466fdc55c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

although I&#39;ve never dealt much with mod_proxy, I think mod_layout shoul=
d be able to do this for you. =A0 try something like this:<div><br></div><d=
iv><div><div>=A0=A0 =A0 =A0 =A0&lt;Directory &quot;/any/path/&quot;&gt;</di=
v><div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0AddOutputFilterByType LAYOUT text/=
html</div>
<div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0LayoutFooter /any/path/footer.html</=
div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0LayoutHeader /any/path/header.ht=
ml</div><div>=A0=A0 =A0 =A0 =A0&lt;/Directory&gt;</div><div></div></div><di=
v class=3D"gmail_quote"><br></div><div class=3D"gmail_quote">
can also just use that in your=A0VirtualHost or whatever. =A0 I&#39;m not 1=
00% sure if this will work for you, but sometimes there aren&#39;t many peo=
ple replying to this list, so I thought I&#39;d try.</div><div class=3D"gma=
il_quote">
<br></div><div class=3D"gmail_quote">On Tue, Apr 7, 2009 at 10:47 AM, Boris=
 Dimitrov <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]">b2@playti=
me.bg</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello list , is there a way to configure mod_layout and mod_proxy to<br>
rewrite the html content of pages that users of my apache proxy server<br>
are viewing ?<br>
I have to do some banner advertise headers at every page user visit ,<br>
the proxy server will serve internet pages such google,myspace etc...<br>
I can&#39;t find useful information about this issue , the docs says nothin=
g<br>
about LayoutProxy directive , when i turn it on my apache says :<br>
<br>
Invalid command &#39;LayoutProxy&#39;, perhaps misspelled or defined by a m=
odule<br>
not included in the server configuration<br>
<br>
<br>
OS : Debian Lenny<br>
Server version: Apache/2.2.9 (Debian)<br>
mod_layout version: 5.1<br>
<br>
<br>
Sorry for my poor english<br>
Thanks in advance<br>
<br>
<br>
_______________________________________________<br>
Mod_layout mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]=
g</a><br>
<a href=3D"http://lists.tangent.org/mailman/listinfo/mod_layout" target=3D"=
_blank">http://lists.tangent.org/mailman/listinfo/mod_layout</a><br>
</blockquote></div><br></div>

--0016369202cb90ec5f0466fdc55c--

--===============8676305283485629165==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mod_layout mailing list
[email protected]
http://lists.tangent.org/mailman/listinfo/mod_layout

--===============8676305283485629165==--