[ic] Trying to get Interchange::Link to work with 5.2
Mike Heins
mike at perusion.com
Wed Aug 11 18:16:39 EDT 2004
Quoting Kip Lawrence (kip at jkcrafts.com):
> Hi all,
>
> I'm trying to get Interchange::Link to work with my 5.2 interchange.
> Everything works perfectly if I use the cgi-bin method to access my
> store and backend but I can't seem to get Link to work. All I get is a
> completely blank page.
>
> Specs:
> Perl v5.8.4
> Apache/2.0.50 (Gentoo/Linux) mod_perl/1.99_11 Perl/v5.8.4 mod_ssl/2.0.50
> OpenSSL/0.9.7d PHP/4.3.8 configured
>
> I have uncommented all of the warns in Link.pm and have attached at the
> bottom of this email what results I get when I try to go to /shop using
> Mozilla.
>
> Does any have any ideas for me?
I think you just need to have /shop on the end of the Catalog line in
interchange.cfg. Or, you can put a "InterchangeScript /cgi-bin/YOURCGILINK"
in the Location.
>
> Thank you,
> Kip
>
> ----------
>
> Here is what I have in my apache2.conf file:
> PerlModule Apache2
> PerlRequire /etc/perl/startup.pl
>
> Here is what I have in my vhosts.conf file:
> <VirtualHost xx.xxx.xxx.xxx:80>
> ServerName www.jkcrafts.com
> DocumentRoot /var/www/www.jkcrafts.com/htdocs
> ScriptAlias /cgi-bin/ /var/www/www.jkcrafts.com/cgi-bin/
> <Location /shop>
> SetHandler perl-script
> PerlResponseHandler Interchange::Link
> PerlOptions +GlobalRequest
> PerlSetVar InterchangeServer /usr/local/interchange/etc/socket
> PerlSetVar OrdinaryFileList "/store/images/"
> </Location>
> </VirtualHost>
>
> My socket permissions are:
> www Interchange # ls -al /usr/local/interchange/etc/socket
> srw-rw-rw- 1 interch interch 0 Aug 11 13:28
> /usr/local/interchange/etc/socket
>
> ----- /var/log/apache2/error_log
> current location=/shop
> Entering handler.
> Got arguments.
> Connection=Apache::Connection=SCALAR(0x8790ad4) at
> /etc/perl/Interchange/Link.pm line 446.
> uri=/shop
> Getting location /shop
> checking for OrdinaryFile (?-xism:^/store/images/)
> method=GET
> header Host/HTTP_HOST=www.jkcrafts.com
> header User-Agent/HTTP_USER_AGENT=Mozilla/5.0 (Windows; U; Windows NT
> 5.1; en-US; rv:1.7.2) Gecko/20040803
> header
> Accept/HTTP_ACCEPT=application/x-shockwave-flash,text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
> header Accept-Language/HTTP_ACCEPT_LANGUAGE=en-us,en;q=0.5
> header Accept-Encoding/HTTP_ACCEPT_ENCODING=gzip,deflate
> header Accept-Charset/HTTP_ACCEPT_CHARSET=ISO-8859-1,utf-8;q=0.7,*;q=0.7
> header Keep-Alive/HTTP_KEEP_ALIVE=300
> header Connection/HTTP_CONNECTION=keep-alive
> header
> Cookie/HTTP_COOKIE=sessioncookie=d96f8bcf02aee99fecc44ce9c11142d9;
> mosvisitor=1
> header Cache-Control/HTTP_CACHE_CONTROL=max-age=0
> Got environment.
> Got entity.
> InterchangeServer=/usr/local/interchange/etc/socket
> vlink /usr/local/interchange/etc/socket RandomServer=
> Ready to connect.
> reading from SOCK
> GOT header read from SOCK: Status: 404 Not found
>
> GOT header read from SOCK: Content-Type: text/plain
>
> GOT header read from SOCK: Content-Length: 24
>
> GOT header read from SOCK:
>
> Setting header=Status to '404 Not found'
> Setting header=Content-Length to '24'
> 404 not found status
>
> _______________________________________________
> interchange-users mailing list
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295 tollfree 800-949-1889 <mike at perusion.com>
I am a great believer in luck, and I find that the harder I work
the more luck I have. -- Thomas Jefferson
More information about the interchange-users
mailing list