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

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PSP
Group: None
>Status: Closed
>Resolution: Fixed
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




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

>Comment By: Christoph Zwerschke (cito)
Date: 2006-07-07 18:43

Message:
Logged In: YES 
user_id=193957

This has been fixed in the SVN trunk and will work in
Webware 0.9.2.

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

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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Webware-devel mailing list
Webware-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to