evhost.conf 695 B

123456789101112131415161718192021222324
  1. #######################################################################
  2. ##
  3. ## Enhanced virtual hosting
  4. ## --------------------------
  5. ##
  6. ## See https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModEVhost
  7. ##
  8. server.modules += ( "mod_evhost" )
  9. ##
  10. ## define a pattern for the host url finding
  11. ## %% => % sign
  12. ## %0 => domain name + tld
  13. ## %1 => tld
  14. ## %2 => domain name without tld
  15. ## %3 => subdomain 1 name
  16. ## %4 => subdomain 2 name
  17. ## %_ => full domain name
  18. ## %{M.N} => single character at 1-indexed position N in the domain segment %M (e.g %0 - %9)
  19. ##
  20. evhost.path-pattern = vhosts_dir + "/%3/htdocs/"
  21. ##
  22. #######################################################################