• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

adding a bit of code to pages

O

ott0

Guest
I just got a VPS with plesk, and will be hosting sites for a few of my friends.

I want to add a footer to each page on their sites that says something stupid, like "this sit3 h0sted by th3 1337 d00d consortium" or something. Is there any way to do this in Plesk or apache? Tell the server to add something extra to each page?

Or would I have to use php or something?

thanks a lot
 
Hi,

You can do this using Apache.

Modifying static content using a CGI script
The following directives will cause requests for files with the html extension to trigger the launch of the footer.pl CGI script.

Action add-footer /cgi-bin/footer.pl
AddHandler add-footer .html
Then the CGI script is responsible for sending the originally requested document (pointed to by the PATH_TRANSLATED environment variable) and making whatever modifications or additions are desired.

Of course you could change the .pl to .php and execute a PHP script. For more details see Apache Handler Use docs.

Regards,
Jeff Wickenheiser
 
Back
Top