Bugs item #1036360, was opened at 2004-09-28 11:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=104866&aid=1036360&group_id=4866

Category: PSP
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Samuel Smith (smithsamuelm)
Assigned to: Nobody/Anonymous (nobody)
Summary: multiple index file bug

Initial Comment:
I have mod_webkit  version 0.8.1 installed on Mac OS X Server 
10.3.5 with Apache (not apache 2)

For one of my virtual hosts in its VirtualHost block I have the 
following block
<IfModule mod_webkit.c>
                AddType text/psp .psp
                AddHandler psp-handler .psp
                <Location /WK>
                        WKServer localhost 8086
                        SetHandler webkit-handler
                </Location>
        </IfModule>

If I type in a complete URL path to a file ending in .psp it displays 
correctly so I believe the mod_webkit
basically works. I also have the Webkit.cgi installed in /cgi-bin/ 
and can view the admin pages for webkit

On the virtual host in question, the default page is a .psp page 
named index.psp

It is located in the DocumentRoot for the virtual host site
documentroot/index.psp

I have the apache directive DirectoryIndex in my virtual host block 
with index.psp first.

DirectoryIndex "index.psp" "index.html" "index.php"

According to the apache docs the list is searched in order. The first 
document found is the one displayed.
Both index.psp and index.html exit but not index.php

But whenever I enter in a web browser the url
http://myvirtualhost/

I get an error
404 Error

Page Not Available On This Server

The page you requested, /, was not found on this server.
 Webware Webkit Application Server

if instead I enter
http://myvirtualhost/index.psp

then the page displays correctly.
If I change the DirectoryIndex so that index.html comes before 
index.psp then the index.html page displays correctly.

I looks like from the error that it is trying to get a file "/".

I checked the AppServer console and it prints out the following

 331  2004-09-24 13:25:40  /
WARNING: the directory is /Library/WebServer/Documents/
adeptsystemsinc/ which contains more than 1 directory file: ['/
Library/WebServer/Documents/adeptsystemsinc/index.html', '/
Library/WebServer/Documents/adeptsystemsinc/index.psp']
  331  0.00 secs            /


If I then remove index.html so that only index.psp remains in the 
directory, then the index.psp page displays correctly when I enter
http://myvirtualhost/   and I get no error.

This seems to be a bug in mod_webkit.
It shouldn't be an error  for there to be more than one default 
directory index file. It should respect the apache DirectoryIndex 
directive.

Since it only occurs if it is already processing index.psp and not if 
index.html comes first. It seems senseless to even have this error?


Interestingly enough, when I changed the name of the .psp file I 
was using to test to index.psp.test and then copied back another 
index.psp file
I got the following

 345  2004-09-24 13:46:57  /
WARNING: the directory is /Library/WebServer/Documents/
adeptsystemsinc/ which contains more than 1 directory file: ['/
Library/WebServer/Documents/adeptsystemsinc/index.psp', '/
Library/WebServer/Documents/adeptsystemsinc/index.psp.test']
  345  0.00 secs

but did not get this error even though there is both and index.psp 
and index.psp.bak in the same directory.

So there may be a bug in how the directory is being parsed for file 
names by mod_webkit!

Sam




----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=104866&aid=1036360&group_id=4866


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to