Re: [racket] Problem with default-indices files in Web-Server

2012-02-24 Thread Jay McCarthy
On Thu, Feb 23, 2012 at 3:24 PM, Gustavo Massaccesi wrote: > Thanks for the answer. I prefer to use the standard plt-web-server > executable, because I'm working in a small internal project for a few > hundreds users. I solved my problem using a refresh in the index.html > file to redirect the use

Re: [racket] Problem with default-indices files in Web-Server

2012-02-23 Thread Gustavo Massaccesi
Thanks for the answer. I prefer to use the standard plt-web-server executable, because I'm working in a small internal project for a few hundreds users. I solved my problem using a refresh in the index.html file to redirect the users to the real page. It isn't very elegant, but it works. This mess

Re: [racket] Problem with default-indices files in Web-Server

2012-02-22 Thread Jay McCarthy
Indexes are used by the file server to turn a directory request into a file request if the file exists. What you want is some default behavior if there is no other handler for a request, you could do that with a lift [1] dispatcher where the procedure was just (lambda (req) (redirect-to "/index.rk