eboansi's avatar

Laravel Application produces 404 errors intermittently on IIS

I have a Laravel application that produces 404 errors intermittently without changing the web.php (the route page) or web.config. Since this application is running on IIS server I created a virtual host which points to the public folder under the application.

I will visit the application multiple times to login, http://localhost/myapp/login everything will be fine then an hour or so or even a day later the same page will go to a 404 error page. If I keep refreshing the page it will go to a 404 page until after an hour or it suddenly works as expected.

Furthermore if I visit the application using a case insensitive url like this http://localhost/MYAPP/ the page produces a 404 sometimes but not all the time.

Interestingly, whenever the 404 errors appear, if I restart the server or resave the web.config file without making any changes just by resaving the web.config file the 404 error page disappears.

0 likes
4 replies
eboansi's avatar

I don't really have a choice of the web server to use. The institution I work for, uses IIS

Please or to participate in this conversation.