1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

adding a bit of code to pages

Discussion in 'Plesk for Linux - 8.x and Older' started by ott0, Feb 4, 2006.

  1. ott0

    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
  2. thehostmanager

    thehostmanager Guest


    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.

    Jeff Wickenheiser