*.php/anyresponce

Discussion in 'General' started by dims, May 20, 2013.

  1. dims

    dims New Member

  2. dims

    dims New Member

    like as AcceptPathInfo on
  3. NiteWave

    NiteWave Administrator

    did simple tests:

    it's default behavior of Apache as well

    e.g, the default is
    AcceptPathInfo Default
    http://httpd.apache.org/docs/current/mod/core.html
    Code:
    Default
           The treatment of requests with trailing pathname information is determined by the handler responsible for the request. The core handler for normal files defaults to rejecting PATH_INFO requests. Handlers that serve scripts, such as cgi-script and isapi-handler, generally accept PATH_INFO by default.
    my test show that
    AcceptPathInfo On/Off
    no effect to lsws. lsws just stick to "AcceptPathInfo Default"

    and test show that if the php script has query string,
    AcceptPathInfo On/Off
    also no effect to apache.

    for example,
    domain.com/hello.php?a=1/aaa/sss/ddd/fff
    the behavior are same between apache and lsws
  4. dims

    dims New Member

    This is will be fixed?
  5. mistwang

    mistwang LiteSpeed Staff

    It is not likely be changed, however, you can easily address it with a rewrite rule, by testing the PATH_INFO env with RewiteCond directive.

Share This Page