I tried renaming WebKit/OneShot.cgi to index.cgi to use it as the default
DirectoryIndex. If I access it as
http://www.justrestingsw.com/index.cgi
everything works as expected. If I access it as
http://www.justrestingsw.com/
I get an infinite loop of 301 redirects. Here's what httpget retrieves:
HTTP/1.1 301 Redirect
Date: Sun, 03 Mar 2002 21:06:42 GMT
Server: Apache/1.3.19 (Unix) FrontPage/5.0.2.2510
location: .//
Connection: close
Content-Type: text/html
<html>
<head>
<title>301 Moved Permanently</title>
</head>
<body>
<h1>Moved Permanently</h1>
<p> The document has moved to <a href=".//">.//</a>.
</body>
</html>
I was able to write another simple little index.cgi script that worked as
expected. Why is this causing an infloop? Webware appears to be writing
the location: header. I added
open ("/home/justrestingsw/trash", "a").write("in index.cgi\n")
and verified that the CGI script is, indeed, being executed.
I am using Hostway, so the entire scope of control of my Apache
configuration file is what will work inside my .htaccess file. (I have none
at the moment.) Hostway's default DirectoryIndex is
DirectoryIndex index.htm,index.cgi
I will install Webware on my laptop tomorrow and try things out where I have
a little more control. I was hoping someone might have some ideas in the
meantime.
Thanks,
--
Skip Montanaro ([EMAIL PROTECTED] - http://www.mojam.com/)
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss