Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 25th, 2001, 10:23 AM
Teedeepee Teedeepee is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 18 Teedeepee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 14 sec
Reputation Power: 0
Cool Can Apache prepend a header file to any request?

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

Reply With Quote
  #2  
Old August 25th, 2001, 10:47 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0

Reply With Quote
  #3  
Old August 26th, 2001, 11:08 AM
Teedeepee Teedeepee is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 18 Teedeepee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 14 sec
Reputation Power: 0
Talking Thread closed!

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

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Can Apache prepend a header file to any request?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway