Ticket #146 (closed defect)
Unable to get static files to serve with (1 8) version
|Reported by:||vegashacker||Owned by:||untyped|
I've created as simple a test project as I could to reproduce the problem. In the code below, as is, you'll see a "Controller not found" error when you navigate to http://localhost:8765/baz.html. But, change the two "8"s at the top to "7"s, and baz.html will load just fine.
Setup: inside some directory have foo.ss (shown below) and htdocs/baz.html (which can be just some test string). Run mzscheme (I'm on 126.96.36.199), and then (load "foo.ss").
foo.ss ====== (require web-server/http web-server/servlet-env web-server/dispatchers/dispatch (planet untyped/dispatch:1:=8) (planet untyped/dispatch:1:=8/response)) (define-site my-site ([(url "/") home])) (define-controller (home req) "foo") (serve/servlet (lambda (req) (dispatch req my-site)) #:servlet-regexp #rx"" #:servlet-path "/" #:port 8765 #:file-not-found-responder make-not-found-response #:server-root-path (build-path ".") #:command-line? #t #:launch-browser? #f)