Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 7th, 2000, 02:58 AM
boblight boblight is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Posts: 2 boblight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I am searching for a way to look at generated files in Apache before they are transmitted to the client. The files can be generated by any dynamic page (PHP, CGI, JSP, etc.). Can this be done at all? Can this be done using an Apache Module?

Reply With Quote
  #2  
Old August 7th, 2000, 03:14 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>Can this be done at all? Can this be done using an Apache Module?

Don't understand at all. Why can't you view your own files before launching your site?

If you want to look at the generated files, then you are already the client. If you want to intercept the file, you are still the unique client.

Start here to search for a particular module of Apache -> http://modules.apache.org/

Reply With Quote
  #3  
Old August 7th, 2000, 03:27 AM
boblight boblight is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Posts: 2 boblight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for your reply. Let me further explain: I want to programmatically add extra post-processing to requests before they are sent out to clients (For instance, adding additional or changing HTML code), and to do that for all types of requests (cgi, php, etc). I do not want to do so as a proxy or a client, but from within the Apache server itself. The only solution I could find was Servlet Chaining, which isn't supported by Apache JServ.

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by freebsd:
>>Can this be done at all? Can this be done using an Apache Module?

Don't understand at all. Why can't you view your own files before launching your site?

If you want to look at the generated files, then you are already the client. If you want to intercept the file, you are still the unique client.

Start here to search for a particular module of Apache -> http://modules.apache.org/
[/quote]


Reply With Quote
  #4  
Old August 7th, 2000, 04:10 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>I want to programmatically add extra post-processing to requests before they are
sent out to clients

This example would get the client's http referer and determine what output to send.

#!/usr/local/bin/perl

$referer = "$ENV{'HTTP_REFERER'}";

print "Content-type: text/htmlnn";
print "<html>n<body>n";
if ($referer) {
print "It appears you are coming from ";
print "$referern";
}
else {
print "Hello Worldn";
}
print "</body>n</html>n";

Or within an html document, or PHP, you can use "include". Anyway, you should put whatever codes within your script to do whatever post-processing tasks.

If you are talking about Apache, you can put something like this in your .htaccess file:

RedirectMatch index.html http://foo.bar.com/file.jsp

[This message has been edited by freebsd (edited August 07, 2000).]

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Chaining Apache Modules


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway