[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

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

Hi,
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
i.e.
http://server/user/12b.xml,  

Thanks
Jamie
0
jamie_lynn
Asked:
jamie_lynn
1 Solution
 
mankowitzCommented:
See http://httpd.apache.org/docs/1.3/handler.html

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/footer.pl, you would do this:

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

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now