web.config 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.web>
  4. <customErrors mode="Off" />
  5. <compilation batchTimeout="8100" />
  6. <sessionState timeout="120" />
  7. </system.web>
  8. <system.webServer>
  9. <defaultDocument>
  10. <files>
  11. <clear />
  12. <add value="index.php" />
  13. </files>
  14. </defaultDocument>
  15. <httpErrors errorMode="Custom">
  16. <remove statusCode="412" subStatusCode="-1" />
  17. <remove statusCode="406" subStatusCode="-1" />
  18. <remove statusCode="405" subStatusCode="-1" />
  19. <remove statusCode="403" subStatusCode="-1" />
  20. <remove statusCode="401" subStatusCode="-1" />
  21. <remove statusCode="404" subStatusCode="-1" />
  22. <remove statusCode="500" subStatusCode="-1" />
  23. <remove statusCode="501" subStatusCode="-1" />
  24. <remove statusCode="502" subStatusCode="-1" />
  25. <error statusCode="502" prefixLanguageFilePath="" path="https://www.mietubl.com.cn/404.asp" responseMode="Redirect" />
  26. <error statusCode="501" prefixLanguageFilePath="" path="https://www.mietubl.com.cn/404.asp" responseMode="Redirect" />
  27. <error statusCode="500" prefixLanguageFilePath="" path="https://www.mietubl.com.cn/404.asp" responseMode="Redirect" />
  28. <error statusCode="404" prefixLanguageFilePath="" path="https://www.mietubl.com.cn/404.asp" responseMode="Redirect" />
  29. <error statusCode="401" prefixLanguageFilePath="" path="https://www.mietubl.com.cn/404.asp" responseMode="Redirect" />
  30. <error statusCode="403" prefixLanguageFilePath="" path="https://www.mietubl.com.cn/404.asp" responseMode="Redirect" />
  31. <error statusCode="405" prefixLanguageFilePath="" path="https://www.mietubl.com.cn/404.asp" responseMode="Redirect" />
  32. <error statusCode="406" prefixLanguageFilePath="" path="https://www.mietubl.com.cn/404.asp" responseMode="Redirect" />
  33. <error statusCode="412" prefixLanguageFilePath="" path="https://www.mietubl.com.cn/404.asp" responseMode="Redirect" />
  34. </httpErrors>
  35. <httpProtocol>
  36. <customHeaders>
  37. <add name="Access-Control-Allow-Methods" value="POST,GET,OPTIONS" />
  38. <add name="Access-Control-Allow-Origin" value="*" />
  39. <add name="Access-Control-Allow-Headers" value="Content-Type,api_key,Authorization" />
  40. </customHeaders>
  41. </httpProtocol>
  42. </system.webServer>
  43. </configuration>