[Mono-list] HttpRequest.PathInfo

Charlie mono-list at charlie.at
Mon Oct 31 15:40:54 EST 2005

On Mon, 2005-10-31 at 15:06 -0500, Gonzalo Paniagua Javier wrote:
> On Mon, 2005-10-31 at 20:23 +0100, Charlie wrote:
> > Hi
> > 
> > I am mucking around writing yet another web based image gallery viewer.
> > I am using with HttpRequest.PathInfo determine what to look at and
> > noticed that when running under mono index.aspx is tacked on to the end
> > of the PathInfo if the last character is '/': 
> > ie for the request:
> > http://myserver/image/image.aspx/200309OeSTM/
> > 
> > apache sees:
> > apache log: "GET /image/image.aspx/200309OeSTM/ HTTP/1.1" 
> > 
> > Request.PathInfo:
> > mod_mono: /200309OeSTM/index.aspx
> > iis5: /200309OeSTM/
> I would say that this is a problem in your configuration. Does that file
> exist? Are you using DirectoryIndex index.aspx?

Misconfiguration is what I thought at first too, but I checked my apache
config for DirectoryIndex. I even added a DirectoryIndex with nothing
specified in the VirtualHost section for this server

grep -R DirectoryIndex *
httpd.conf:DirectoryIndex index.html index.html.var
vhosts.d/myserver.conf:       DirectoryIndex

<VirtualHost ipaddr:80>
    ServerName myserver
    DocumentRoot /srv/myserver
    AddMonoApplications image "/image:/srv/myserver/image"
    MonoMaxMemory image  20000000
    MonoMaxCPUTime image 3600
    <Directory "/srv/myserver">
        Options -Includes +Includes
        AllowOverride All
        Order allow,deny
        Allow from all
    <Directory "/srv/myserver/image">
       MonoSetServerAlias image
       Options ExecCGI
       AddHandler mono .aspx .ascx .asax .ashx .cs .config .asmx

also no index.aspx present.
ls -R image
.  ..  bin  image.aspx  Web.config
.  ..  image.dll

Redirect /index.html http://myserver/image/image.aspx
Options -Indexes

I currently have no idea where the index.aspx could be coming from. 

thanks in advance for any help


More information about the Mono-list mailing list