vhosts.conf 582 B

1234567891011121314151617181920212223
  1. ## primitive virtual host support
  2. $HTTP["host"] =~ "demo\.superglue\.it$" {
  3. server.document-root = "/www/htdocs-demo"
  4. server.upload-dirs = ( "/www/tmp" )
  5. server.errorlog = "/www/log/demo-error.log"
  6. accesslog.filename = "/www/log/demo-access.log"
  7. $HTTP["request-method"] == "GET" {
  8. alias.url = (
  9. "/resources" => "/www/lib/resources",
  10. "" => "/www/lib/cgi/demo.cgi"
  11. )
  12. }
  13. $HTTP["request-method"] == "POST" {
  14. alias.url = (
  15. "" => "/www/lib/cgi/post.cgi"
  16. )
  17. ## disable authentication
  18. auth.require = ""
  19. }
  20. }