[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

configure apache to intercept all requests with a cgi program

Posted on 2002-04-10
3
Medium Priority
?
227 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

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…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses
Course of the Month13 days, 1 hour left to enroll

650 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