LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-18-2009, 10:31 PM   #1
yogi799
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Rep: Reputation: 0
Can Apache server automatically append HTML to all served pages?


I want to put Google analytics code on all legacy pages on my server, most of them don't have a template so I was wondering if Apache can automatically append the code. Is this possible/easily done?
 
Old 06-18-2009, 10:39 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
You could do it with server side includes, but that would require modifying the source pages (could be done with sed for example) which you may not want to do. The info here uses mod_layout which I haven't tried, but it sounds like it will do what you want.
 
Old 06-18-2009, 11:55 PM   #3
yogi799
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by gilead View Post
You could do it with server side includes, but that would require modifying the source pages (could be done with sed for example) which you may not want to do. The info here uses mod_layout which I haven't tried, but it sounds like it will do what you want.
Holy cracks, I think this mod will do just fine. Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
autogenerate html pages from a directory with apache? afonit Linux - Software 1 05-02-2008 07:03 PM
blank pages served from apache mjenkins Linux - Server 0 11-15-2006 04:24 PM
Apache? Php? non-existent pages getting served... bulliver Linux - General 2 08-14-2006 07:48 PM
Web pages not being served hivtop Linux - General 5 01-12-2005 08:11 AM
Cookie Sharing Between CGI generated HTML pages and standard HTML pages rkwhited Linux - Newbie 5 08-15-2004 07:39 AM


All times are GMT -5. The time now is 03:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration