|
Home > Archive > IIS Server > May 2004 > AcceptPathInfo
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| Hello Wolrd,
doesn't anyone how to configure IIS to accept slashs instead of ampersands
or question marks?
António
| |
|
| Sorry,
.... to post the querylist?
With Apache we can do
http://anyone.com/test.php/arg1/arg2
With IIS it has to be like this
http://anyone.com/test.php?arg1&arg2
How can I tune IIS to behave like Apache in this matter?
Thanks
António
"doug" <anonymous@discussions.microsoft.com> wrote in message
news:b34f01c4376d$ee071120$a401280a@phx.gbl...
What? That question is about as clear as a foggy day...
Can you let us know what you are trying to do...?
doug
>-----Original Message-----
>Hello Wolrd,
>
>doesn't anyone how to configure IIS to accept slashs
instead of ampersands
>or question marks?
>
>António
>
>
>.
>
| |
|
| Oh, ok...
I don't think this is possible with IIS. IIS treats a /=20
as a new directory...
doug
>-----Original Message-----
>Sorry,
>.... to post the querylist?
>
>With Apache we can do
>
>http://anyone.com/test.php/arg1/arg2
>
>With IIS it has to be like this
>
>http://anyone.com/test.php?arg1&arg2
>
>How can I tune IIS to behave like Apache in this matter?
>
>Thanks
>
>Ant=F3nio
>
>"doug" <anonymous@discussions.microsoft.com> wrote in=20
message
>news:b34f01c4376d$ee071120$a401280a@phx.gbl...
>What? That question is about as clear as a foggy day...
>
>Can you let us know what you are trying to do...?
>
>doug
>instead of ampersands
>
>
>.
>
| |
|
| Hi again,
How does the IE the calculate the absolute path of a picture referred with a
relative path on a Html page?
Is this on a variable? Can we change it with a script?
Example
If I try http://anyone.com/test.php?something.htm and this something has a
image.gif, IE will try to try to download the picture from
http://anyone.com/image.gif. I suppose http://anyone.com/ is saved somewhere
else, if I could change it for http://anyone.com/test.php? with a script my
problem was solved.
Antonio
"doug" <anonymous@discussions.microsoft.com> wrote in message
news:b65b01c43778$1a891090$a601280a@phx.gbl...
Oh, ok...
I don't think this is possible with IIS. IIS treats a /
as a new directory...
doug
>-----Original Message-----
>Sorry,
>.... to post the querylist?
>
>With Apache we can do
>
>http://anyone.com/test.php/arg1/arg2
>
>With IIS it has to be like this
>
>http://anyone.com/test.php?arg1&arg2
>
>How can I tune IIS to behave like Apache in this matter?
>
>Thanks
>
>António
>
>"doug" <anonymous@discussions.microsoft.com> wrote in
message
>news:b34f01c4376d$ee071120$a401280a@phx.gbl...
>What? That question is about as clear as a foggy day...
>
>Can you let us know what you are trying to do...?
>
>doug
>instead of ampersands
>
>
>.
>
| |
| David Wang [Msft] 2004-05-12, 7:38 am |
| FYI: this is an ANCIENT (and outdated) concept that Apache is supporting,
and there is a hack on IIS to do the same -- Set
"AllowPathInfoForScriptMappings" to 1 in the metabase for the vdir in
question. The latter setting will break ASP, and may break other script
engines and CGI... so use at your own risk.
I highly suggest you move away from the outdated construct if at all
possible. Using PathInfo to pass parameters for CGI predates the more
modern (and richer) use of querystring to pass parameters.
--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"a" <antonio.cardoso@ieee.org> wrote in message
news:enD4QO3NEHA.620@TK2MSFTNGP10.phx.gbl...
Sorry,
.... to post the querylist?
With Apache we can do
http://anyone.com/test.php/arg1/arg2
With IIS it has to be like this
http://anyone.com/test.php?arg1&arg2
How can I tune IIS to behave like Apache in this matter?
Thanks
António
"doug" <anonymous@discussions.microsoft.com> wrote in message
news:b34f01c4376d$ee071120$a401280a@phx.gbl...
What? That question is about as clear as a foggy day...
Can you let us know what you are trying to do...?
doug
>-----Original Message-----
>Hello Wolrd,
>
>doesn't anyone how to configure IIS to accept slashs
instead of ampersands
>or question marks?
>
>António
>
>
>.
>
| |
|
| Hi
That parameter (Allow....) doesn't affect the manipulation of names before a
slash, IIS always try to find a directory with that name.
António
"David Wang [Msft]" <someone@online.microsoft.com> wrote in message
news:O8uvxMBOEHA.3300@TK2MSFTNGP09.phx.gbl...
> FYI: this is an ANCIENT (and outdated) concept that Apache is supporting,
> and there is a hack on IIS to do the same -- Set
> "AllowPathInfoForScriptMappings" to 1 in the metabase for the vdir in
> question. The latter setting will break ASP, and may break other script
> engines and CGI... so use at your own risk.
>
> I highly suggest you move away from the outdated construct if at all
> possible. Using PathInfo to pass parameters for CGI predates the more
> modern (and richer) use of querystring to pass parameters.
>
> --
> //David
> IIS
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> //
> "a" <antonio.cardoso@ieee.org> wrote in message
> news:enD4QO3NEHA.620@TK2MSFTNGP10.phx.gbl...
> Sorry,
> ... to post the querylist?
>
> With Apache we can do
>
> http://anyone.com/test.php/arg1/arg2
>
> With IIS it has to be like this
>
> http://anyone.com/test.php?arg1&arg2
>
> How can I tune IIS to behave like Apache in this matter?
>
> Thanks
>
> António
>
> "doug" <anonymous@discussions.microsoft.com> wrote in message
> news:b34f01c4376d$ee071120$a401280a@phx.gbl...
> What? That question is about as clear as a foggy day...
>
> Can you let us know what you are trying to do...?
>
> doug
> instead of ampersands
>
>
>
| |
| David Wang [Msft] 2004-05-12, 7:35 pm |
| Did you configure .PHP as a ScriptMap Engine?
Did you enable at least "Scripts" execute permissions on the vdir?
Did you set the AllowPathInfoForScriptMappings property at the vdir which
has .PHP as a ScriptMap?
What IIS version are you referring to?
--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"a" <antonio.cardoso@ieee.org> wrote in message
news:uSinkTBOEHA.3012@tk2msftngp13.phx.gbl...
Hi
That parameter (Allow....) doesn't affect the manipulation of names before a
slash, IIS always try to find a directory with that name.
António
"David Wang [Msft]" <someone@online.microsoft.com> wrote in message
news:O8uvxMBOEHA.3300@TK2MSFTNGP09.phx.gbl...
> FYI: this is an ANCIENT (and outdated) concept that Apache is supporting,
> and there is a hack on IIS to do the same -- Set
> "AllowPathInfoForScriptMappings" to 1 in the metabase for the vdir in
> question. The latter setting will break ASP, and may break other script
> engines and CGI... so use at your own risk.
>
> I highly suggest you move away from the outdated construct if at all
> possible. Using PathInfo to pass parameters for CGI predates the more
> modern (and richer) use of querystring to pass parameters.
>
> --
> //David
> IIS
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> //
> "a" <antonio.cardoso@ieee.org> wrote in message
> news:enD4QO3NEHA.620@TK2MSFTNGP10.phx.gbl...
> Sorry,
> ... to post the querylist?
>
> With Apache we can do
>
> http://anyone.com/test.php/arg1/arg2
>
> With IIS it has to be like this
>
> http://anyone.com/test.php?arg1&arg2
>
> How can I tune IIS to behave like Apache in this matter?
>
> Thanks
>
> António
>
> "doug" <anonymous@discussions.microsoft.com> wrote in message
> news:b34f01c4376d$ee071120$a401280a@phx.gbl...
> What? That question is about as clear as a foggy day...
>
> Can you let us know what you are trying to do...?
>
> doug
> instead of ampersands
>
>
>
| |
|
| Hi
ISS 5.1
What is a ScriptMap? How can I create one?
I did the default Installation of php 4.3.
What do you call vdir in this context? Must I create a vdir at download
point of the script with the same name of the script?
About Allow..., I executed these command
adsutil set w3svc/AllowPathInfoForScriptMappings True
adsutil set w3svc/1/AllowPathInfoForScriptMappings True
Regards
António
"David Wang [Msft]" <someone@online.microsoft.com> wrote in message
news:e8SNFfHOEHA.204@TK2MSFTNGP10.phx.gbl...
> Did you configure .PHP as a ScriptMap Engine?
> Did you enable at least "Scripts" execute permissions on the vdir?
> Did you set the AllowPathInfoForScriptMappings property at the vdir which
> has .PHP as a ScriptMap?
> What IIS version are you referring to?
>
> --
> //David
> IIS
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> //
> "a" <antonio.cardoso@ieee.org> wrote in message
> news:uSinkTBOEHA.3012@tk2msftngp13.phx.gbl...
> Hi
>
> That parameter (Allow....) doesn't affect the manipulation of names before
a
> slash, IIS always try to find a directory with that name.
>
> António
>
> "David Wang [Msft]" <someone@online.microsoft.com> wrote in message
> news:O8uvxMBOEHA.3300@TK2MSFTNGP09.phx.gbl...
supporting,[vbcol=seagreen]
> rights.
>
>
>
| |
| David Wang [Msft] 2004-05-13, 8:34 pm |
| A Scriptmap is what tells IIS to allow php to process .PHP files and
generate a response.
If you made a request to /test.php and you got the processed content back
(and not the php code) then .PHP is ScriptMapped to handle the .PHP
extension and "Scripts" execution permission is enabled
I also need to ask whether you are using the ISAPI or CGI version -- and to
try the ISAPI version for these settings.
By vdir I mean that you configure .PHP as a ScriptMap at some place in the
URL namespace. Make sure that portion of the URL namespace:
1. Has .PHP scriptmapped to php ISAPI so that php is processed
2. Has "Scripts" execution permission enabled so that php is even invoked to
handle the files
3. Has AllowPathInfoForScriptMappings enabled
IIS configuration namespace is hierarchical with inheritance, so values set
at the parent level (W3SVC) are inherited by children level (W3SVC/1,
W3SVC/1/ROOT , etc) unless overridden by the child. The effective
configuration of a given URL is the merging of all default and overriden
configuration values.
--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"a" <antonio.cardoso@ieee.org> wrote in message
news:uQgNuvNOEHA.640@TK2MSFTNGP12.phx.gbl...
Hi
ISS 5.1
What is a ScriptMap? How can I create one?
I did the default Installation of php 4.3.
What do you call vdir in this context? Must I create a vdir at download
point of the script with the same name of the script?
About Allow..., I executed these command
adsutil set w3svc/AllowPathInfoForScriptMappings True
adsutil set w3svc/1/AllowPathInfoForScriptMappings True
Regards
António
"David Wang [Msft]" <someone@online.microsoft.com> wrote in message
news:e8SNFfHOEHA.204@TK2MSFTNGP10.phx.gbl...
> Did you configure .PHP as a ScriptMap Engine?
> Did you enable at least "Scripts" execute permissions on the vdir?
> Did you set the AllowPathInfoForScriptMappings property at the vdir which
> has .PHP as a ScriptMap?
> What IIS version are you referring to?
>
> --
> //David
> IIS
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> //
> "a" <antonio.cardoso@ieee.org> wrote in message
> news:uSinkTBOEHA.3012@tk2msftngp13.phx.gbl...
> Hi
>
> That parameter (Allow....) doesn't affect the manipulation of names before
a
> slash, IIS always try to find a directory with that name.
>
> António
>
> "David Wang [Msft]" <someone@online.microsoft.com> wrote in message
> news:O8uvxMBOEHA.3300@TK2MSFTNGP09.phx.gbl...
supporting,[vbcol=seagreen]
> rights.
>
>
>
| |
|
| Hi,
I think we have miss the point of this discussion. My IIS is processing PHP
scripts without problem, what I really want is this:
How can I tune the IIS to work like Apache, an example.
With Apache I can do this,
http://uuu/ggg/jjj/script.php/ddd/pp/oo/tt
or
http://uuu/ggg/jjj/ddd/pp/script.php/oo/tt
without specific tuning for that script.php, script.php is actually a script
and not a vdir with a DLL inside.
Regards
António
"David Wang [Msft]" <someone@online.microsoft.com> wrote in message
news:u9ehQlUOEHA.556@tk2msftngp13.phx.gbl...
> A Scriptmap is what tells IIS to allow php to process .PHP files and
> generate a response.
>
> If you made a request to /test.php and you got the processed content back
> (and not the php code) then .PHP is ScriptMapped to handle the .PHP
> extension and "Scripts" execution permission is enabled
>
> I also need to ask whether you are using the ISAPI or CGI version -- and
to
> try the ISAPI version for these settings.
>
> By vdir I mean that you configure .PHP as a ScriptMap at some place in the
> URL namespace. Make sure that portion of the URL namespace:
> 1. Has .PHP scriptmapped to php ISAPI so that php is processed
> 2. Has "Scripts" execution permission enabled so that php is even invoked
to
> handle the files
> 3. Has AllowPathInfoForScriptMappings enabled
>
> IIS configuration namespace is hierarchical with inheritance, so values
set
> at the parent level (W3SVC) are inherited by children level (W3SVC/1,
> W3SVC/1/ROOT , etc) unless overridden by the child. The effective
> configuration of a given URL is the merging of all default and overriden
> configuration values.
>
> --
> //David
> IIS
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> //
> "a" <antonio.cardoso@ieee.org> wrote in message
> news:uQgNuvNOEHA.640@TK2MSFTNGP12.phx.gbl...
> Hi
>
> ISS 5.1
> What is a ScriptMap? How can I create one?
> I did the default Installation of php 4.3.
> What do you call vdir in this context? Must I create a vdir at download
> point of the script with the same name of the script?
> About Allow..., I executed these command
>
> adsutil set w3svc/AllowPathInfoForScriptMappings True
> adsutil set w3svc/1/AllowPathInfoForScriptMappings True
>
> Regards
>
> António
>
> "David Wang [Msft]" <someone@online.microsoft.com> wrote in message
> news:e8SNFfHOEHA.204@TK2MSFTNGP10.phx.gbl...
which[vbcol=seagreen]
> rights.
before[vbcol=seagreen]
> a
> supporting,
script[vbcol=seagreen]
>
>
>
| |
| David Wang [Msft] 2004-05-30, 11:52 am |
| No, we have not missed the point of the discussion.
AllowPathInfoForScriptMappings is the setting which changes IIS behavior to
be like Apache's in this regard, and it is not tuning specific to script.php
but to all scriptmaps.
This allows http://uuu/ggg/jjj/script.php/ddd/pp/oo/tt to be translated to:
/ggg/jjj/script.php is SCRIPT_NAME
/ddd/pp/oo/tt is PATH_INFO
In order for AllowPathInfoForScriptMapping to work, the .php extension must
be treated as a ScriptMap -- thus I wanted to make sure that it's configured
correctly on IIS. You have to do this similar step on Apache as well; it
just doesn't have an option like AllowPathInfoForScriptMapping.
--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"a" <antonio.cardoso@ieee.org> wrote in message
news:%23wpjhkdOEHA.3420@TK2MSFTNGP11.phx.gbl...
Hi,
I think we have miss the point of this discussion. My IIS is processing PHP
scripts without problem, what I really want is this:
How can I tune the IIS to work like Apache, an example.
With Apache I can do this,
http://uuu/ggg/jjj/script.php/ddd/pp/oo/tt
or
http://uuu/ggg/jjj/ddd/pp/script.php/oo/tt
without specific tuning for that script.php, script.php is actually a script
and not a vdir with a DLL inside.
Regards
António
"David Wang [Msft]" <someone@online.microsoft.com> wrote in message
news:u9ehQlUOEHA.556@tk2msftngp13.phx.gbl...
> A Scriptmap is what tells IIS to allow php to process .PHP files and
> generate a response.
>
> If you made a request to /test.php and you got the processed content back
> (and not the php code) then .PHP is ScriptMapped to handle the .PHP
> extension and "Scripts" execution permission is enabled
>
> I also need to ask whether you are using the ISAPI or CGI version -- and
to
> try the ISAPI version for these settings.
>
> By vdir I mean that you configure .PHP as a ScriptMap at some place in the
> URL namespace. Make sure that portion of the URL namespace:
> 1. Has .PHP scriptmapped to php ISAPI so that php is processed
> 2. Has "Scripts" execution permission enabled so that php is even invoked
to
> handle the files
> 3. Has AllowPathInfoForScriptMappings enabled
>
> IIS configuration namespace is hierarchical with inheritance, so values
set
> at the parent level (W3SVC) are inherited by children level (W3SVC/1,
> W3SVC/1/ROOT , etc) unless overridden by the child. The effective
> configuration of a given URL is the merging of all default and overriden
> configuration values.
>
> --
> //David
> IIS
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> //
> "a" <antonio.cardoso@ieee.org> wrote in message
> news:uQgNuvNOEHA.640@TK2MSFTNGP12.phx.gbl...
> Hi
>
> ISS 5.1
> What is a ScriptMap? How can I create one?
> I did the default Installation of php 4.3.
> What do you call vdir in this context? Must I create a vdir at download
> point of the script with the same name of the script?
> About Allow..., I executed these command
>
> adsutil set w3svc/AllowPathInfoForScriptMappings True
> adsutil set w3svc/1/AllowPathInfoForScriptMappings True
>
> Regards
>
> António
>
> "David Wang [Msft]" <someone@online.microsoft.com> wrote in message
> news:e8SNFfHOEHA.204@TK2MSFTNGP10.phx.gbl...
which[vbcol=seagreen]
> rights.
before[vbcol=seagreen]
> a
> supporting,
script[vbcol=seagreen]
>
>
>
|
|
|
|
|