[Betsie-devel] RE: Win2k / IIS href path trouble
Brought to you by:
george_auckland,
waynem
From: Jon B. <Jon...@ne...> - 2003-08-19 12:03:40
|
Sorry, I'm new to this mailing list so forgive me if this has already = been answered. I'm getting the same problem as the one below and I cannot find any = further information about it. Does anyone have a solution for this? The initial page loads but subsequent pages fail with a 404. Win2k Server, IIS 5.0, PATH_INFO enabled. I believe it has something to do with the IIS configuration not liking = the URL's generated by Betsie. I have tried using the ISAPI module and Perl.exe I would be grateful for any help. Thanks. Jon Barlow. From: Oliver Gray <o@ct...>=20 Win2k / IIS href path trouble =20 2003-06-30 16:54 =20 A path/syntax issue I think, any information greatly appreciated! =20 Background: Running betsie on my Windows 2000 development box with IIS 5.0 I have read the readme info and enabled the PATH_INFO setting! The perl script actually works when using the standard "text only" link = from a page in my site, e.g: =20 <A HREF=3D"http://www.yoursite.com/cgi-bin/parser.pl">Text-only</A> =20 But subsequent links from this Betsie generated page do not work, =20 ..parser.pl/0005/com294/CTU_2003/AboutUs.asp =20 giving the standard (non perl!) error: =20 "The page cannot be found" etc. =20 I have tried many different path names with/without the 0005 bit but = with no success (including external pages.) Basically I am unable to parse any web page using the forward slash = option! N.B. my Perl script was altered to make it work using the alternative = path script provided by Neil (2002-01-29 08:26) <------------------------------ SCRIPT PROVIDED ----------------------------------> Look for these lines in the betsie script:=20 # take path info or referer allowing easy linking in...=20 $inpath =3D $ENV{'PATH_INFO'} || $ENV{'HTTP_REFERER'};=20 comment out the line above and add the bit below:=20 # changed as PATH_INFO never seems to be empty on IIS=20 if ($ENV{'PATH_INFO'} eq $name) {=20 $inpath =3D $ENV{'HTTP_REFERER'}=20 } else {=20 $inpath =3D $ENV{'PATH_INFO'}=20 }=20 <----------------------------------------- END -------------------------------------------> Sorry, I'm not sure I can really make the site live just yet to show = you all! =20 Many thanks, =20 Oli Gray. =20 = =AC=AC=AC=AC=AC=AC=AC=AC=AC=AC=AC=AC=AC=AC=AC=AC=AC=AC=AC=AC=AC=AC=AC=AC=AC= =AC=AC=AC=AC=AC=AC=AC=AC Web Systems Developer @ MRC Clinical Trials Unit. Tel: 020 7670 4834 |