?
Solved

configure apache to intercept all requests with a cgi program

Posted on 2002-04-10
3
Medium Priority
?
218 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 200 total points
ID: 6933477
apology on the repeated posts.
0

Featured Post

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month8 days, 12 hours left to enroll

764 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