Helpful Information
 
 
Category: Apache Development
Automatically insert header

I plan to start a free web hosting service soon, but need a way to force one HTML table at the top of each page. Anyone know how this can be accomplished?

Start here -> http://www.perl.com/CPAN-local/modules/by-module/Apache/Apache-Sandwich-2.04.readme

I took the .htaccess method with '5oo' errors. Here's what I did. I'm on a RaQ, so file paths are 'home/sites/www.domain.com/web'.

Put this in the .htaccess
<Location /web>
#any request /web and it's document tree
#are run through our Apache::Sandwich::handler
SetHandler perl-script
PerlHandler Apache::Sandwich

#we send this file first
PerlSetVar HEADER "/header.htm"
</Location>

I don't need a footer, so I removed that. I placed index.htm and header.htm in the 'web' directory. Any idea's?

>>I took the .htaccess method with '5oo' errors

You shouldn't use .htaccess method if you want to enforce your predefined header to be displayed on all users html page.
Check the readme file and find the line:

# filter *.brc files through Sandwich maker, but define
# HEADER/FOOTER per section below

then read that example again. One important Directive that readme doesn't mention, which is RemoveHandler -> http://httpd.apache.org/docs/mod/mod_mime.html#removehandler

We'll, does anyone have a httpd.conf section modified to what I'm looking for? I've been trying all afternoon with no success. I'm not very familiar with Apache as I'm on a RaQ3 and don't modify files often. Any help would be apperciated.

Anyone know where I can just hire someone to do this?










privacy (GDPR)