I’m running apache 2.4.46, and rather than yet another commandbox instance, I’m now just running lucee docs via a virtualhost with mod_cfml.
If i restart Lucee and open http://docs.localhost/ I get the default welcome to lucee page, coz mod_cfml hasn’t kicked in and told tomcat how to handle this host.
I’d have guessed that you haven’t added any DirectoryIndex index.cfm in your virtual host configuration, but that’s not the case. I’ll also take a look at this and take the chance installing apache on Windows. Never did that. As soon as I get home I’ll check it.
Having DNS servers configured in a client’s TCP/IP configuration, but the server is not available to the client usually causes this. Because the TCP/IP protocol assumes an unreliable network, a client will repeatedly attempt to connect to a DNS server before abandoning the attempted query. The client will then attempt to query a second DNS server if one is configured and take the same time to fail. Only then will the client step through to NetBIOS name resolution as described above.
There are three ways to approach this issue.
If the host name is correctly entered in a host file, it will be resolved before the client attempts to query DNS. This solution works well if DNS servers are temporarily unreachable and there is a small number of host names that need to be resolved . Manually configuring Hosts files for numerous clients may be prohibitive.
The exact same thing happens with mod_cfml and Taffy - our production instances all had mod_cfml removed and a health check made to poll ‘/index.cfm’ to work around this.
For our dev Docker images, it’s just something we live with; the browser remembers the URL so it’s not much extra effort.
@thefalken Browsers will basically resolve any foobar.localhost domain to 127.0.01. I put some changes in the last version of CommandBox to “support” this. basically by detecting any time a user uses an xxx.localhost domain that isn’t in the hosts file and I swap it out for just localhost in the background. browsers will resolve the domain, but the rest of your PC’s networking stack will refuse to recognize it (including java) without a hosts file. (which is why I just swap it out for you so the server actually binds on localhost but we still open the browser URLs to your subdomain.
That being said, I still use the hostupdater module just so I can bind the same port to more than one local server.