set up the server and index page