Previous Next

Thread: 500 - Internal server error

Last post 08-27-2008 12:26 AM by lettit. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 08-25-2008, 6:37 PM

    • lettit
    • Not Ranked
    • Joined on 08-25-2008, 6:05 PM
    • Posts 3

    500 - Internal server error

     I am using Windows Server 2008

    I have added a only rule to the module

    <rule name="ARule" stopProcessing="true">
    <match url="a([0-9]*)" />
    <action type="Rewrite" url="index.php?a=(R:1)" />
    </rule>

    It runs smooth.

    I then add 2 conditions and result the following.

    <rule name="ARule" stopProcessing="true">
    <match url="a([0-9]*)" />
    <conditions>
    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
    </conditions>
    <action type="Rewrite" url="index.php?a=(R:1)" />
    </rule>
     

     The page show "500 - Internal server error". The trace page log the following.

    CONDITIONS_EVALUATION_START LogicalGrouping="MatchAll"
    CONDITIONS_EVALUATION_END Succeeded="false"

    This condition can be run on a local machine directory without problem. However the conidtion failed to run on a network path.

    Anyone can help? Thanks

  • 08-25-2008, 6:54 PM In reply to

    • DanielVL
    • Top 50 Contributor
    • Joined on 10-07-2006, 6:00 PM
    • Redmond, WA, USA
    • Posts 74

    Re: 500 - Internal server error

    Hi,

    Did you add the rule at server level? IsFile and IsDirectory don't work at server level, you need to move the rule to the site level.

    In the rewrite action, Did you mean "index.php?a={R:1}" instead of "index.php?a=(R:1)"?

    Thanks.

    Daniel Vasquez Lopez
    IIS Team
  • 08-26-2008, 3:41 AM In reply to

    • lettit
    • Not Ranked
    • Joined on 08-25-2008, 6:05 PM
    • Posts 3

    Re: 500 - Internal server error

     yes, you are right. The action is "index.php?a={R:1}". I mistyped it.

    The rule is set on virtual directory level with network path file and physical path credentials specified.

  • 08-26-2008, 3:01 PM In reply to

    • DanielVL
    • Top 50 Contributor
    • Joined on 10-07-2006, 6:00 PM
    • Redmond, WA, USA
    • Posts 74

    Re: 500 - Internal server error

    Hi lettit, this is an issue and it has been fixed for the next release. Please contact me if you have further questions.

    Thank you.

    Daniel Vasquez Lopez
    IIS Team
  • 08-27-2008, 12:26 AM In reply to

    • lettit
    • Not Ranked
    • Joined on 08-25-2008, 6:05 PM
    • Posts 3

    Re: 500 - Internal server error

    Thanks much
Page 1 of 1 (5 items)
Page view counter