how to cofigure a IIS5 server to allow the part of the URL after a script name to be passed directly to the script?

how to cofigure a IIS5 server to allow the part of the URL after a script name to be passed directly to the script?

by jouse 2001 -
Number of replies: 6

Hi everyone,

    sorry about the other messege. I've got set up moodle 1.1 under winxp and IIS5 server, and it work fine so far, but i've got a little problem sad. When i upload files, i just can see it when the slasharguments=file.php?file=/pic.jpg , in this way i must use absolute links in my html files, that is very unconfortable. I've been looking for in the moodle's documentation and i found the solution for apache 2:

"Your web server needs to be configured to allow the part of the URL after a script name to be passed directly to the script. This is usually enabled in Apache 1, but is usually disabled by default in Apache 2. To turn it on, add this line to your httpd.conf, or to a .htaccess file in your local directory (see the Install documentation for more details): AcceptPathInfo on ".

but how can i do that in a IIS5 server?

   thanks in advanced and sorry about my english

            José A.

Average of ratings: -
In reply to jouse 2001

Re: how to cofigure a IIS5 server to allow the part of the URL after a script name to be passed directly to the script?

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Perhaps this could be a solution?
(extracted from the web)

> WORKAROUND
> If you want to use PATH_INFO and PATH_TRANSLATED as specified by the CGI
> specification, then use the AllowPathInfoForScriptMappings property. This
> property can be set using the Adsutil.vbs tool or the MetaEdit.exe tool,
> which comes with the Internet Information Server 4.0 Resource Kit. Using
> this property, you can set a Web server to allow or disallow the use of
> the variables.

I've no idea about IIS, but it seems that using MetaEdit.exe or Adsutil.vbs you can configure IIS to accept that URLs.

Hope it helps smile
In reply to Eloy Lafuente (stronk7)

Re: how to cofigure a IIS5 server to allow the part of the URL after a script name to be passed directly to the script?

by Adolfo Mario López Peiro -

HI!

the link to download "Application Center 2000 - Meta-Data Edit Tool" :

http://www.microsoft.com/downloads/details.aspx?familyid=48364a72-d54e-46dc-aacf-e3be887d17a6&displaylang=en

when i edit  the AllowPathInfoForScriptMappings property it display the next image: (but i don´t know what's the next step)

allowpathinfo

In reply to Adolfo Mario López Peiro

Re: how to cofigure a IIS5 server to allow the part of the URL after a script name to be passed directly to the script?

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Perhaps under:

"/LM/W3SVC"
"/LM/W3SVC/n"

You can find the property "AllowPathInfoForScriptMappings" and try to set it to "true" or "1". I've read this in a MS page.

And I've find this article about configuring it from "adsutil".

Feedback will be welcome, hope it helps, ciao smile
In reply to Eloy Lafuente (stronk7)

Re: how to cofigure a IIS5 server to allow the part of the URL after a script name to be passed directly to the script?

by Ernesto Gaston Pacheco -

I tried it and also found that page on the MS base, but it doesn´t work.

Unless I change the slashargumet configuration, but then I can´t use relative links!! I hope somebody can find the solution,

In reply to Ernesto Gaston Pacheco

Re: how to cofigure a IIS5 server to allow the part of the URL after a script name to be passed directly to the script?

by Petr Skoda -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers

Slasharguments are not supported in IIS for Moodle 1.4.x.

I have fixed it in Moodle 1.5dev and tested it in both cgi and isapi mode, php4 and5 smile Do not set AllowPathInfoForScriptMappings to true, instead use cgi.fix_pathinfo=1 in php.ini. Isapi needs php 5.x or 4.3.11 (not yet released).

skodak

In reply to Petr Skoda

Re: how to cofigure a IIS5 server to allow the part of the URL after a script name to be passed directly to the script?

by Ernesto Gaston Pacheco -

So there is NO solution in Moodle 1.4.4 working with IIS?

That is terrible news!!