[ic] Using Mod Interchange 2 questions

Kevin Walsh interchange-users@icdevgroup.org
Wed Nov 27 04:01:01 2002


Philip S. Hempel [pshempel@linuxhardcore.com] wrote:
> >>
> >>Questions related to using mod interchange,
> >>1. Will mod interchange help with the problems apache has with ssl and cgi
> >>scripts?
> >>    A. Qualify problem with cgi scipts and ssl: Certian browsers are not
> >>able to setup a data session with ssl because of some bug with apache.
> >>    B. I know if most users upgrade there browser this would be a mute
> >>point, but I have recently found out there is no way to upgrade 3/4 of
> >>the internet. Many mac machines can not have access to the newest
> >>browsers if there OS version is not at OSX 10. Versions avaiable for
> >>IE is 5.1 < OSX10 and after testing myself this does not work. Mozilla
> >>still has problems on version prior to MAC OS 9. IE 5.0 and under has
> >>problems under windows.
> >>
> >>    
> >>
> >Perhaps you need to upgrade your Apache/mod_ssl.
> >
> I am using version 1.3.26 of apache, I know 1.3.27 is out.
> I am using version 2.8.10 of mod_ssl , I know 2.8.12 is out
> 
> I also use the unstable version of Debian and have put a bug report
> in to the mod_ssl maintainer today as well. It seems as if Debian has ot
> gotten around to upgrading Apache and mod ssl yet
> 
> Also at this time I am using interchange 2.9.3 cvs as of today with its 
> include
> version of mod interchange.
> 
> BTW this is a developement box that is not live. I am preparing for a 
> possible upgrade
> to our production server.
> 
> >  
> >
> >>2. If the previous is true, can mod rewrite be used with mod Interchange?
> >>    A. Qualify mod rewrite: mod rewrite used with pasthrough not redirect.
> >>     B. using mod rewrite to move site root to / and pass to /cgi-bin/store
> >>
> >>I have tested mod interchange with mod rewrite and what works with the cgi
> >>does not work with mod Interchange, I had some thought that mod
> >>Interchange was a very close replacement for the cgi since really the cgi
> >>is used to talk to a socket any ways.
> >>
> >>If mod Interchange does not work with mod rewrite, can it be modded to
> >>work if it will resolve the cgi and apache, ssl problem?
> >>
> >>    
> >>
> >Can you show what you're trying to do?  I've never had any trouble
> >mixing rewrite rules with mod_interchange.
> >
> >  
> >
> ################### Making the  / the site root note: check above for other 
> ## This does requre scriptalias /bl /usr/lib/cgi-bin....
> ## NOTE: this is not redirect this is passthrough (no 301)
> 	    RewriteRule ^$ /bl/index.html [PT,L]
> 	    RewriteRule ^/$ /bl/index.html [PT,L]
> 	    RewriteRule ^/index\.html$ /bl/index.html [PT,L]
> 	    RewriteRule ^/bl/.* - [PT,L]
> # next is to cover for old settings using /bl/
> # no!	    RewriteRule ^/bl/.* - [PT,L]
> #	    RewriteRule ^/bl - [PT,L]
> # end old settings
> # Stop rules - this "-" means do not parse
> # next for interchange images
> 	    RewriteRule ^/interchange/.* - [PT,L]
> # end images not sure untested
> 	    RewriteRule ^/pdf/.* - [PT,L]
> # same for pdf
> 	    RewriteRule /sitemap.html - [PT,L]
>     	    RewriteRule /robots.txt$ - [PT,L]
> 	    RewriteRule /blorp/.* - [PT,L]
> 	    RewriteRule /favicon.ico - [PT,L]
> # same for sitemap previous 4 rules added by me
> 	    RewriteRule ^/.*images/.* - [PT,L]
> # End Stop rules - this "-" means do not parse
> 	    RewriteRule ^/(.*) /bl/$1 [PT,L]
> #### all of the above also need to be put in secure site
> 
> What occurs with this configuration is I see the uri for the links that 
> are clicked
> in the browser window but it always returns the index page of the site. 
> Apache
> logs even show what was selected from the browser.
> 
> 192.168.1.232 - - [26/Nov/2002:21:29:31 -0500] "GET 
> /ord/checkout.html?id=9QTrgUKK&mv_pc=3 HTTP/1.1" 200 7357 
> "http://darkangel.linuxhardcore.com/" "Mozilla/5.0 (Windows; U; Windows 
> NT 5.1; en-US; rv:1.0.1) Gecko/20020823"
> 
> Interchange returns either errors such as (checkout) not found, this 
> error is for
>  anything that a sid is showing in browser or the index page is 
> returned. I tried setting
> URILevel 0 to see if this would create the desired effect, but only 
> recieved less
> errors and more index page.
> 
> This may just be a need to modify the way the pass throughs are handled
> but not really knowing how mod interchange functions internally would 
> require
> much trial and error on my part to determine a proper configuration if 
> this is the
> case.
> 
> Thanks for your repsonse
> If there is a need for any other information please let me know.
> 
Thank you for your detailed error report.

I believe I have fixed the [PT] interaction problem you described and
have sent you a copy of the modified source to test.  If you would be
kind enough to confirm the fix then I'll release the new version.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/