Forum Moderators: phranque
LayoutDefaultHandlers Off
and
LayoutHandler text/html
but in the error_log for apache I still get an 500 error for the header and footer saying "premature end of script" like it's expecting it to still be a cgi/php script...running the latest version of the mod_layout module ( 3.2.1) which compiled and installed without errors, can anyone please help? What am I doing wrong? What do I need to do to get this to work? Thanks!
header: /usr/local/apache/iads/header.html
footer: /usr/local/apache/iads/footer.html
the header is html and contains just the google javascript ad code, the footer is an empty html file for now
I want those to be put on all sites in /data1 and none of the sites in /home ...what would be the config I'd use for this? Also where would I put this in my php.ini file, is just anywhere OK? Thanks alot! :-)
php.inifile and find the directives. They are likely blank or possibly commented out. You set them just as you would any other PHP configuration directive and they can appear anywhere in the file. To set them in
php.ini:
auto_prepend_file "/usr/local/apache/iads/header.html"
auto_append_file "/usr/local/apache/iads/footer.html"
httpd.confor per-directory override (
.htaccess) file:
php_value auto_prepend_file "/usr/local/apache/iads/header.html"
php_value auto_append_file "/usr/local/apache/iads/footer.html"
Jim
httpd.conf) or in a per-directory [httpd.apache.org] override (
.htaccess) file.