|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi all,
I'd like Apache to attach both a header and a footer file by default to any requested .html document on my server. I could do this by explicitely using an SSI call or PHP <? include ?>, but I would have to do that to every single page on my server, which is quite cumbersome. Do you know of any config directive or module that can do this ? Thanks! Teedeepee |
|
#2
|
|||
|
|||
|
|
|
#3
|
|||
|
|||
|
Thanks freebsd!
Actually my provider will not let me install any custom Apache module ![]() The best workaround I could find was to set up the auto_append and auto_prepend directives in the php.ini file. I also set up .html extensions to be parsed as PHP files by Apache, so now every HTTP request for an .html document is sent back with a header and a footer automagically included. Cheers, Teedeepee |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Can Apache prepend a header file to any request? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|