Re: using mod_layout for global server headers? urgent!

"Ben Burgess" <[email protected]> Thu, 1 May 2008 01:53:41 -0700
Newsgroups gmane.comp.apache.mod-layout
Message-ID <[email protected]>
--===============2074913045107625640==
Content-Type: multipart/alternative; 
	boundary="----=_Part_11077_1845396.1209632021426"

------=_Part_11077_1845396.1209632021426
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Well I added the LayoutFooter directive to my httpd.conf file but it's not
effecting any of the pages on my site.

On Wed, Apr 30, 2008 at 10:44 PM, Ben Burgess <[email protected]> wrote:

> So I could just go :
>
> <Directory "/home/">
> LayoutFooter /var/ErrorDocs/alert.html
> </Directory>
>
>
>
> 2008/4/30 No Bullshit XXX Host <[email protected]>:
>
> > yup, they can be used in any apache config files.   .htaccess, or your
> > main config (httpd.conf) wherever.
> >
> > 2008/5/1 Ben Burgess <[email protected]>:
> >
> > Where can I use the <directory> section? .htaccess or what?
> > >
> > >
> > > 2008/4/30 No Bullshit XXX Host <[email protected]>:
> > >
> > > > good stuff.   I use it in a <directory> but I think you can use it
> > > > in a <virtual host> or anything else.   mine looks like this:
> > > >
> > > >         <Directory "/home/somedir/">
> > > >                 AddOutputFilterByType LAYOUT text/html
> > > >                 LayoutFooter
> > > > /var/www/somedir/public_html/adfoot.html
> > > >                 LayoutHeader
> > > > /var/www/somedir/public_html/adhead.html
> > > >         </Directory>
> > > >
> > > > you can also use the LayoutFooter/Header with your content right in
> > > > there, like:
> > > >
> > > >                 LayoutFooter "Hi, I'm a footer"
> > > > or
> > > >                 LayoutFooter "<font size=+10>I got big feet</font>"
> > > >
> > > > I use that AddOutputFilterByType to specify all text/html content,
> > > > but there are options to specify types of files & whatnot, you'd have to
> > > > check the docs.
> > > >
> > > > 2008/4/30 Ben Burgess <[email protected]>:
> > > >
> > > > > Yeah I figured it out. So what sort of configuration do you use to
> > > > > include banners globally?
> > > > >
> > > > >
> > > > > 2008/4/30 No Bullshit XXX Host <[email protected]>:
> > > > >
> > > > > > ok, I ran into the same problem once.  the makefile wasn't
> > > > > > finding apxs.   hopefully it's installed on your system, or we might have a
> > > > > > harder task.    find apxs (using something like "locate aspx")  and in the
> > > > > > file Makefile, change the "APXS=" line to wherever your aspx is.   Mine, for
> > > > > > example, was "APXS=/usr/sbin/apxs"   see if you get anywhere with that, and
> > > > > > let me know.
> > > > > >
> > > > > >
> > > > > > 2008/4/30 Ben Burgess <[email protected]>:
> > > > > >
> > > > > > > I downloaded the tar and tar-xf'd it in the tmp directory. I
> > > > > > > then ran make and got the following:
> > > > > > >
> > > > > > > root@farpoint [/tmp/mod_layout-5.1]# make
> > > > > > > apxs -c -Wall -DHAVE_DEBUG  mod_layout.c utility.c layout.c
> > > > > > > make: apxs: Command not found
> > > > > > > make: *** [mod_layout.so] Error 127
> > > > > > > root@farpoint [/tmp/mod_layout-5.1]#
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 2008/4/30 No Bullshit XXX Host <[email protected]>:
> > > > > > >
> > > > > > > > the install program will install it.   so when you run
> > > > > > > > 'make' and 'make install' providing there are no errors, it should put
> > > > > > > > everything in the right place.  I'm no expert on the installation process,
> > > > > > > > but have managed to do it twice now.  :-)
> > > > > > > >
> > > > > > > >
> > > > > > > > 2008/4/30 Ben Burgess <[email protected]>:
> > > > > > > >
> > > > > > > > > First, make sure Apache 2.0 is in your path (probably
> > > > > > > > > means
> > > > > > > > > adding /usr/local/apache2/bin to your PATH).
> > > > > > > > > The type:
> > > > > > > > > make
> > > > > > > > >
> > > > > > > > > And then:
> > > > > > > > > make install
> > > > > > > > >
> > > > > > > > > Really, that is all there is to it. You just now need to
> > > > > > > > > add
> > > > > > > > > the directives that you need.
> > > > > > > > >
> > > > > > > > > What does this mean?! Where am I supposed to place the
> > > > > > > > > mod_layout files?
> > > > > > > > >
> > > > > > > > > 2008/4/30 No Bullshit XXX Host <[email protected]>:
> > > > > > > > >
> > > > > > > > > > Hi Ben, ya, you should be able to do that with
> > > > > > > > > > mod_layout.   Personally, I use it to insert ads for a freehost.    I'd just
> > > > > > > > > > download & install according to the readme & whatnot, and the basic
> > > > > > > > > > configuration should do exactly what you need.
> > > > > > > > > >
> > > > > > > > > > Beardo
> > > > > > > > > >
> > > > > > > > > > 2008/4/30 Ben Burgess <[email protected]>:
> > > > > > > > > >
> > > > > > > > > > >  Hey, I want to include a header about the upcoming
> > > > > > > > > > > Shutdown Day (Sat May 03) on every page hosted on a server I run! Can I use
> > > > > > > > > > > mod_layout to do this? If so, how?
> > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > > Sincerely,
> > > > > > > > > > > Ben Burgess
> > > > > > > > > > > _______________________________________________
> > > > > > > > > > > Mod_layout mailing list
> > > > > > > > > > > [email protected]
> > > > > > > > > > > http://lists.<http://lists.tangent.org/mailman/listinfo/mod_layout>
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > _______________________________________________
> > > > > > > > > > Mod_layout mailing list
> > > > > > > > > > [email protected]
> > > > > > > > > > http://lists.tangent.org/mailman/listinfo/mod_layout
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Sincerely,
> > > > > > > > > Ben Burgess
> > > > > > > > > _______________________________________________
> > > > > > > > > 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
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Sincerely,
> > > > > > > Ben Burgess
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > 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
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Sincerely,
> > > > > Ben Burgess
> > > > >
> > > > > _______________________________________________
> > > > > 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
> > > >
> > > >
> > >
> > >
> > > --
> > > Sincerely,
> > > Ben Burgess
> > >
> > > _______________________________________________
> > > 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
> >
> >
>
>
> --
> Sincerely,
> Ben Burgess
>



-- 
Sincerely,
Ben Burgess

------=_Part_11077_1845396.1209632021426
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Well I added the LayoutFooter directive to my httpd.conf file but it&#39;s not effecting any of the pages on my site.<br><br><div class="gmail_quote">On Wed, Apr 30, 2008 at 10:44 PM, Ben Burgess &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">So I could just go :<br><br>&lt;Directory &quot;/home/&quot;&gt;<br>                 LayoutFooter /var/ErrorDocs/alert.html<br>
&lt;/Directory&gt;<div><div></div><div class="Wj3C7c"><br><br><br><div class="gmail_quote">2008/4/30 No Bullshit XXX Host &lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">yup, they can be used in any apache config files.&nbsp;&nbsp; .htaccess, or your main config (httpd.conf) wherever.<br>

<br><div class="gmail_quote">2008/5/1 Ben Burgess &lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;:<div><div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Where can I use the &lt;directory&gt; section? .htaccess or what?<div><div></div><div>
<br><br><div class="gmail_quote">2008/4/30 No Bullshit XXX Host &lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



good stuff.&nbsp;&nbsp; I use it in a &lt;directory&gt; but I think you can use it in a &lt;virtual host&gt; or anything else.&nbsp;&nbsp; mine looks like this:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Directory &quot;/home/somedir/&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AddOutputFilterByType LAYOUT text/html<br>




&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LayoutFooter /var/www/somedir/public_html/adfoot.html<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LayoutHeader /var/www/somedir/public_html/adhead.html<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Directory&gt; <br><br>you can also use the LayoutFooter/Header with your content right in there, like:<br>




<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LayoutFooter &quot;Hi, I&#39;m a footer&quot;<br>or<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LayoutFooter &quot;&lt;font size=+10&gt;I got big feet&lt;/font&gt;&quot;<br><br>I use that AddOutputFilterByType to specify all text/html content, but there are options to specify types of files &amp; whatnot, you&#39;d have to check the docs. <br>



<div><div></div><div>
<br><div class="gmail_quote">2008/4/30 Ben Burgess &lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




Yeah I figured it out. So what sort of configuration do you use to include banners globally?<div><div></div><div><br><br><div class="gmail_quote">2008/4/30 No Bullshit XXX Host &lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;:<br>





<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">ok, I ran into the same problem once.&nbsp; the makefile wasn&#39;t finding apxs.&nbsp;&nbsp; hopefully it&#39;s installed on your system, or we might have a harder task.&nbsp;&nbsp;&nbsp; find apxs (using something like &quot;locate aspx&quot;)&nbsp; and in the file Makefile, change the &quot;APXS=&quot; line to wherever your aspx is.&nbsp;&nbsp; Mine, for example, was &quot;APXS=/usr/sbin/apxs&quot;&nbsp;&nbsp; see if you get anywhere with that, and let me know.<div>





<div></div><div><br>
<br><div class="gmail_quote">2008/4/30 Ben Burgess &lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






I downloaded the tar and tar-xf&#39;d it in the tmp directory. I then ran make and got the following:<br><br>root@farpoint [/tmp/mod_layout-5.1]# make<br>apxs -c -Wall -DHAVE_DEBUG&nbsp; mod_layout.c utility.c layout.c<br>make: apxs: Command not found<br>







make: *** [mod_layout.so] Error 127<br>root@farpoint [/tmp/mod_layout-5.1]#<div><div></div><div><br><br><br><div class="gmail_quote">2008/4/30 No Bullshit XXX Host &lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;:<br>







<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">the install program will install it.&nbsp;&nbsp; so when you run &#39;make&#39; and &#39;make install&#39; providing there are no errors, it should put everything in the right place.&nbsp; I&#39;m no expert on the installation process, but have managed to do it twice now.&nbsp; :-)<div>







<div></div><div><br>
<br><div class="gmail_quote">2008/4/30 Ben Burgess &lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div style="margin-left: 40px;">First, make sure Apache 2.0 is in your path (probably means<br>adding /usr/local/apache2/bin to your PATH).<br>The type:<br>make<br><br>And then:<br>make install<br><br>Really, that is all there is to it. You just now need to add <br>









the directives that you need.<br></div><br>What does this mean?! Where am I supposed to place the mod_layout files?<br><br><div class="gmail_quote">2008/4/30 No Bullshit XXX Host &lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;:<br>









<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>Hi Ben, ya, you should be able to do that with mod_layout.&nbsp;&nbsp; Personally, I use it to insert ads for a freehost.&nbsp;&nbsp;&nbsp; I&#39;d just download &amp; install according to the readme &amp; whatnot, and the basic configuration should do exactly what you need.<br>










<br>Beardo<br><br><div class="gmail_quote">2008/4/30 Ben Burgess &lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div>

Hey, I want to include a header about the upcoming Shutdown Day (Sat May 03) on every page hosted on a server I run! Can I use mod_layout to do this? If so, how?<br clear="all"><br>-- <br>Sincerely,<br><font color="#888888">Ben Burgess
</font><br></div>_______________________________________________<br>
Mod_layout mailing list<br>
<a href="mailto:[email protected]" target="_blank">[email protected]</a><br>
<a href="http://lists.tangent.org/mailman/listinfo/mod_layout" target="_blank">http://lists.</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
Mod_layout mailing list<br>
<a href="mailto:[email protected]" target="_blank">[email protected]</a><br>
</div></div><a href="http://lists.tangent.org/mailman/listinfo/mod_layout" target="_blank">http://lists.tangent.org/mailman/listinfo/mod_layout</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Sincerely,<br><font color="#888888">Ben Burgess
</font><br>_______________________________________________<br>
Mod_layout mailing list<br>
<a href="mailto:[email protected]" target="_blank">[email protected]</a><br>
<a href="http://lists.tangent.org/mailman/listinfo/mod_layout" target="_blank">http://lists.tangent.org/mailman/listinfo/mod_layout</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Mod_layout mailing list<br>
<a href="mailto:[email protected]" target="_blank">[email protected]</a><br>
<a href="http://lists.tangent.org/mailman/listinfo/mod_layout" target="_blank">http://lists.tangent.org/mailman/listinfo/mod_layout</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Sincerely,<br>Ben Burgess
</div></div><br>_______________________________________________<br>
Mod_layout mailing list<br>
<a href="mailto:[email protected]" target="_blank">[email protected]</a><br>
<a href="http://lists.tangent.org/mailman/listinfo/mod_layout" target="_blank">http://lists.tangent.org/mailman/listinfo/mod_layout</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Mod_layout mailing list<br>
<a href="mailto:[email protected]" target="_blank">[email protected]</a><br>
<a href="http://lists.tangent.org/mailman/listinfo/mod_layout" target="_blank">http://lists.tangent.org/mailman/listinfo/mod_layout</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Sincerely,<br>Ben Burgess
</div></div><br>_______________________________________________<br>
Mod_layout mailing list<br>
<a href="mailto:[email protected]" target="_blank">[email protected]</a><br>
<a href="http://lists.tangent.org/mailman/listinfo/mod_layout" target="_blank">http://lists.tangent.org/mailman/listinfo/mod_layout</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Mod_layout mailing list<br>
<a href="mailto:[email protected]" target="_blank">[email protected]</a><br>
<a href="http://lists.tangent.org/mailman/listinfo/mod_layout" target="_blank">http://lists.tangent.org/mailman/listinfo/mod_layout</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Sincerely,<br>Ben Burgess
</div></div><br>_______________________________________________<br>
Mod_layout mailing list<br>
<a href="mailto:[email protected]" target="_blank">[email protected]</a><br>
<a href="http://lists.tangent.org/mailman/listinfo/mod_layout" target="_blank">http://lists.tangent.org/mailman/listinfo/mod_layout</a><br>
<br></blockquote></div></div></div><br>
<br>_______________________________________________<br>
Mod_layout mailing list<br>
<a href="mailto:[email protected]" target="_blank">[email protected]</a><br>
<a href="http://lists.tangent.org/mailman/listinfo/mod_layout" target="_blank">http://lists.tangent.org/mailman/listinfo/mod_layout</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Sincerely,<br>Ben Burgess
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sincerely,<br>Ben Burgess

------=_Part_11077_1845396.1209632021426--

--===============2074913045107625640==
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

--===============2074913045107625640==--