Consolidated ASP Classic MVC framework from best components
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

71 líneas
2.3KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <appSettings>
  4. <!--
  5. Access connection string.
  6. IMPORTANT: Change Data Source to the real physical path
  7. to your webdata.accdb file.
  8. -->
  9. <add key="ConnectionString"
  10. value="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\YourApp\db\webdata.accdb;Persist Security Info=False;" />
  11. <!-- Environment flag (Development / Staging / Production) -->
  12. <add key="Environment" value="Development" />
  13. <!-- Flash message display duration in milliseconds -->
  14. <add key="FlashMessageTimeout" value="3000" />
  15. <!-- 404 error page redirect countdown in seconds -->
  16. <add key="Error404RedirectSeconds" value="5" />
  17. <!-- Cache expiration year for static content -->
  18. <add key="CacheExpirationYear" value="2030" />
  19. <!-- Maximum characters to display in table cells before truncating -->
  20. <add key="TableCellMaxLength" value="90" />
  21. <!-- Character threshold for textarea vs input field in forms -->
  22. <add key="FormTextareaThreshold" value="100" />
  23. <!-- Enable error logging to file (true/false) -->
  24. <add key="EnableErrorLogging" value="false" />
  25. <!-- Error log file path (if EnableErrorLogging is true) -->
  26. <add key="ErrorLogPath" value="C:\YourApp\logs\errors.log" />
  27. <!-- Enable cache-busting for URLs and assets (true/false) -->
  28. <add key="EnableCacheBusting" value="false" />
  29. <!-- Cache-bust parameter name (default: "v") -->
  30. <add key="CacheBustParamName" value="v" />
  31. </appSettings>
  32. <system.webServer>
  33. <!-- Default document for the site root -->
  34. <defaultDocument>
  35. <files>
  36. <clear />
  37. <add value="Default.asp" />
  38. </files>
  39. </defaultDocument>
  40. <!-- URL Rewrite: send everything through Default.asp except static assets -->
  41. <rewrite>
  42. <rules>
  43. <rule name="Rewrite to Default.asp" stopProcessing="true">
  44. <match url="^(?!Default\.asp$|css/|js/|images/|aspunit/|favicon\.ico$).*$" />
  45. <conditions>
  46. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  47. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  48. </conditions>
  49. <action type="Rewrite" url="/Default.asp" />
  50. </rule>
  51. </rules>
  52. </rewrite>
  53. </system.webServer>
  54. </configuration>

Powered by TurnKey Linux.