Re: mod_layout and mod_proxy
No Bullshit XXX Host <[email protected]> Thu, 9 Apr 2009 09:58:53 -0400
| Newsgroups | gmane.comp.apache.mod-layout |
|---|---|
| Message-ID | <[email protected]> |
--===============3703600228522802886== Content-Type: multipart/alternative; boundary=0016e644d6ae0202cd04671fa6c5 --0016e644d6ae0202cd04671fa6c5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Have you tested mod_layout without your mod_proxy setup, to be sure mod_layout is installed & working? On Thu, Apr 9, 2009 at 4:56 AM, Boris Dimitrov <[email protected]> wrote: > On Tue, 2009-04-07 at 17:33 -0400, No Bullshit XXX Host wrote: > > 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 yourVirtualHost 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 > > > > > > _______________________________________________ > > Mod_layout mailing list > > [email protected] > > http://lists.tangent.org/mailman/listinfo/mod_layout > > > > > Unfortunately , it does not work , still trying to map proxy requests > to mod_layout , without any luck , is there a someone who has dealt > with that issue ? > > Thanks in advance > > _______________________________________________ > Mod_layout mailing list > [email protected] > http://lists.tangent.org/mailman/listinfo/mod_layout > --0016e644d6ae0202cd04671fa6c5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Have you tested mod_layout without your mod_proxy setup, to be sure mod_lay= out is installed & working?<br><br><div class=3D"gmail_quote">On Thu, A= pr 9, 2009 at 4:56 AM, Boris Dimitrov <span dir=3D"ltr"><<a href=3D"mail= to:[email protected]">[email protected]</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex;"><div class=3D"im">On Tue, 2009-04-07 at 17:= 33 -0400, No Bullshit XXX Host wrote:<br> > although I've never dealt much with mod_proxy, I think mod_layout<= br> > should be able to do this for you. try something like this:<br> ><br> ><br> > <Directory "/any/path/"><br> > AddOutputFilterByType LAYOUT text/html<br> > LayoutFooter /any/path/footer.html<br> > LayoutHeader /any/path/header.html<br> > </Directory><br> ><br> ><br> ><br> </div>> can also just use that in yourVirtualHost or whatever. I'm n= ot 100%<br> <div><div></div><div class=3D"h5">> sure if this will work for you, but = sometimes there aren't many people<br> > replying to this list, so I thought I'd try.<br> ><br> ><br> > On Tue, Apr 7, 2009 at 10:47 AM, Boris Dimitrov <<a href=3D"mailto:= [email protected]">[email protected]</a>><br> > wrote:<br> > =A0 =A0 =A0 =A0 Hello list , is there a way to configure mod_layout an= d<br> > =A0 =A0 =A0 =A0 mod_proxy to<br> > =A0 =A0 =A0 =A0 rewrite the html content of pages that users of my apa= che<br> > =A0 =A0 =A0 =A0 proxy server<br> > =A0 =A0 =A0 =A0 are viewing ?<br> > =A0 =A0 =A0 =A0 I have to do some banner advertise headers at every pa= ge user<br> > =A0 =A0 =A0 =A0 visit ,<br> > =A0 =A0 =A0 =A0 the proxy server will serve internet pages such google= ,myspace<br> > =A0 =A0 =A0 =A0 etc...<br> > =A0 =A0 =A0 =A0 I can't find useful information about this issue ,= the docs<br> > =A0 =A0 =A0 =A0 says nothing<br> > =A0 =A0 =A0 =A0 about LayoutProxy directive , when i turn it on my apa= che<br> > =A0 =A0 =A0 =A0 says :<br> ><br> > =A0 =A0 =A0 =A0 Invalid command 'LayoutProxy', perhaps misspel= led or defined<br> > =A0 =A0 =A0 =A0 by a module<br> > =A0 =A0 =A0 =A0 not included in the server configuration<br> ><br> ><br> > =A0 =A0 =A0 =A0 OS : Debian Lenny<br> > =A0 =A0 =A0 =A0 Server version: Apache/2.2.9 (Debian)<br> > =A0 =A0 =A0 =A0 mod_layout version: 5.1<br> ><br> ><br> > =A0 =A0 =A0 =A0 Sorry for my poor english<br> > =A0 =A0 =A0 =A0 Thanks in advance<br> ><br> ><br> > =A0 =A0 =A0 =A0 _______________________________________________<br> > =A0 =A0 =A0 =A0 Mod_layout mailing list<br> > =A0 =A0 =A0 =A0 <a href=3D"mailto:[email protected]">Mod_la= [email protected]</a><br> > =A0 =A0 =A0 =A0 <a href=3D"http://lists.tangent.org/mailman/listinfo/m= od_layout" target=3D"_blank">http://lists.tangent.org/mailman/listinfo/mod_= layout</a><br> ><br> ><br> > _______________________________________________<br> > Mod_layout mailing list<br> > <a href=3D"mailto:[email protected]">[email protected]= nt.org</a><br> > <a href=3D"http://lists.tangent.org/mailman/listinfo/mod_layout" targe= t=3D"_blank">http://lists.tangent.org/mailman/listinfo/mod_layout</a><br> <br> <br> <br> <br> </div></div>Unfortunately , it does not work , still trying to map proxy re= quests<br> to mod_layout , without any luck , is there a someone who has dealt<br> with that issue ?<br> <div><div></div><div class=3D"h5"><br> Thanks in advance<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> </div></div></blockquote></div><br> --0016e644d6ae0202cd04671fa6c5-- --===============3703600228522802886== 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 --===============3703600228522802886==--