delay(1000); // maybe 750ms is enough, maybe not
This line of code is killing the web server. You cannot use delay() while running the web server. Take a look at the blinkWithoutDelay example to see how you can remove the delay() from your code.