Is it just a good idea to host the app on IIS ?
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.
Please or to participate in this conversation.