route1.txt 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #
  2. # route.txt - Route and authorization configuration
  3. #
  4. # Schema
  5. # route uri=URI protocol=PROTOCOL methods=METHODS handler=HANDLER redirect=STATUS@URI \
  6. # extensions=EXTENSIONS abilities=ABILITIES
  7. #
  8. # Routes may require authentication and that users possess certain abilities.
  9. # The abilities, extensions, methods and redirect keywords use comma separated tokens to express a set of
  10. # required options, or use "|" separated tokens for a set of alternative options. This implements AND/OR.
  11. # The protocol keyword may be set to http or https. The redirect status may be "*" to match all HTTP status codes.
  12. # Multiple redirect fields are permissible.
  13. #
  14. # Examples:
  15. #
  16. # Universally redirect http to https for secure communications
  17. # route uri=/ protocol=http redirect=*@https handler=redirect
  18. #
  19. # Form based login pattern.
  20. # route uri=/pub/
  21. route uri=/action/login methods=POST handler=action redirect=200@/ redirect=401@/web/login.html
  22. # route uri=/action/logout methods=POST handler=action redirect=200@/pub/login.html
  23. # route uri=/ auth=form handler=continue redirect=401@/pub/login.html
  24. #
  25. # Sample basic or digest authentication for user "joshua"
  26. # route uri=/auth/basic/ auth=basic abilities=manage
  27. # route uri=/auth/digest/ auth=digest abilities=manage
  28. #
  29. # Eanable the PUT or DELETE methods (only) for the BIT_GOAHEAD_PUT_DIR directory
  30. # route uri=/put/ methods=PUT|DELETE
  31. #
  32. # Standard routes
  33. #
  34. route uri=/cgi-bin dir=cgi-bin handler=cgi
  35. route uri=/action handler=action
  36. route uri=/ extensions=jst handler=jst
  37. route uri=/ methods=OPTIONS|TRACE handler=options
  38. # For legacy GoAhead applications using /goform
  39. route uri=/goform handler=action
  40. #
  41. # Catch-all route without authentication for all other URIs
  42. #
  43. route uri=/
  44. route uri=/ extension=jst,html,asp handler=jst