Teknik is a suite of services with attractive and functional interfaces. https://www.teknik.io/
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

web.config 1.7KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <rewrite>
  5. <rules>
  6. <rule name="View File" enabled="true" stopProcessing="true">
  7. <match url="^([a-zA-Z0-9]+)([\.]([^/]+))?[^/]$" ignoreCase="false" />
  8. <action type="Rewrite" url="/lib/download.php?file={C:1}" appendQueryString="false" logRewrittenUrl="false" />
  9. <conditions>
  10. <add input="{REQUEST_URI}" pattern="/(.+)" />
  11. </conditions>
  12. </rule>
  13. <rule name="Delete Upload" stopProcessing="true">
  14. <match url="^(([a-zA-Z0-9]+)([\.]([^/]+))?)/([a-zA-Z0-9]+)/?$" />
  15. <conditions>
  16. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  17. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  18. </conditions>
  19. <action type="Rewrite" url="delete_upload.php?file={R:1}&amp;hash={R:5}" />
  20. </rule>
  21. </rules>
  22. </rewrite>
  23. <staticContent>
  24. <mimeMap fileExtension=".*" mimeType="application/octet-stream" />
  25. </staticContent>
  26. <security>
  27. <requestFiltering>
  28. <requestLimits maxAllowedContentLength="1000000000" />
  29. </requestFiltering>
  30. </security>
  31. <httpErrors>
  32. <remove statusCode="404" subStatusCode="-1" />
  33. <error statusCode="404" prefixLanguageFilePath="" path="http://error.teknik.io/404" responseMode="Redirect" />
  34. </httpErrors>
  35. </system.webServer>
  36. </configuration>