Solved

configure apache to intercept all requests with a cgi program

Posted on 2002-04-10
3
212 Views
Last Modified: 2010-05-18
Dear experts,

how to configure apache so that when apache receives a request "GET /xyz/index.html with form data", it will intercept this request to a cgi program said "intercept.cgi"??

Thanks!


KC
0
Comment
Question by:kcwang7
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 
LVL 15

Expert Comment

by:samri
ID: 6933475
Try this one out.  You need to have mod_rewrite loaded/enabled

Look in httpd.conf, and make sure these two lines are not commented.  If it is, uncomment, and restart apache.

LoadModule rewrite_module     libexec/mod_rewrite.so
AddModule mod_rewrite.c


The rewrite rules would be:

RewriteEngine  on
RewriteRule    ^/xyz/index\.html$    http://www.domain.com/cgi-bin/program.cgi [L]

And it may go into VirtualHost container.


Take a peek at Apache docs.
http://httpd.apache.org/docs/mod/mod_rewrite.html


good luck
0
 
LVL 15

Expert Comment

by:samri
ID: 6933476
Try this one out.  You need to have mod_rewrite loaded/enabled

Look in httpd.conf, and make sure these two lines are not commented.  If it is, uncomment, and restart apache.

LoadModule rewrite_module     libexec/mod_rewrite.so
AddModule mod_rewrite.c


The rewrite rules would be:

RewriteEngine  on
RewriteRule    ^/xyz/index\.html$    http://www.domain.com/cgi-bin/program.cgi [L]

And it may go into VirtualHost container.


Take a peek at Apache docs.
http://httpd.apache.org/docs/mod/mod_rewrite.html


good luck
0
 
LVL 15

Accepted Solution

by:
samri earned 100 total points
ID: 6933477
apology on the repeated posts.
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

717 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