How do I configure httpd.conf to execute my cgi script based on file type?

Posted on 2007-10-18
Last Modified: 2010-03-04
How do I configure httpd.conf to execute my cgi script based on file type?
I want to execute my cgi program on all xml files to modify them before sending to the user.
It can be in any uri

Question by:jamie_lynn
    1 Comment
    LVL 24

    Accepted Solution


    You need to define the action and add the handler. For example, suppose you wanted to add a footer to all xml files, and the program that would do it is called /cgi-bin/, you would do this:

         Action add-footer /cgi-bin/
         AddHandler add-footer .xml

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Need assistance modifying php script 3 23
    Apache to Lighttpd 9 58
    Changing Sitemap Frequency on XML File 3 58
    ports for sccm 2012 1 33
    It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
    In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now