After adding a .dev domain to my Virtualmin setup, I found that all my other domains were not properly responding on HTTP, they were all getting a 403 forbidden error.
When I checked the error logs for the domains, none had errors.
When I checked the main apache error log - no errors.
When I looked in the error log for the new .dev domain… yep, that’s where the errors were.
Via HTTPS, domains that are set up with an SSL config/certificate serve correctly.
It seems like the new .dev website was being served for all port 80 requests. I had no content in that site yet, thus the 403 error.
My first thought was that the .dev domain had become the default website, so in virtualmin I selected a different domain, then clicked Server Configuration > Website Options and chose “Yes” for “Default website for IP address?”. Restarted apache for good measure. No joy. Still the same issue.
When I check the new .dev (which begins with the letter S, for reference) in the Server Configuration > Website Options, I see “Default website for IP address? Yes (but only because it is alphabetically first)”. Which is funny, because I have other domains that start with “D”.
Just starting to really dig into the configurations, but this is a new one on me. Any thoughts on directions to look would be appreciated.