Please help with Apache virtual servers and DNS trouble (I think)
dalescott at shaw.ca
Fri Nov 20 15:10:42 UTC 2020
> From: "Yuri Pankov" <yuripv at yuripv.dev>
> To: "Dale Scott (dalescott at shaw)" <dalescott at shaw.ca>, "freebsd-questions" <freebsd-questions at freebsd.org>
> Sent: Friday, November 20, 2020 12:12:31 AM
> Subject: Re: Please help with Apache virtual servers and DNS trouble (I think)
> dalescott at shaw.ca wrote:
> HTML is stripped by the list, please use plain text.
Thanks Yuri, sorry all, I didn't realize gmail on my new Android phone must be sending HTML only.
I'm hoping someone can help point me in the right direction to diagnose and fix this.
I am rebuilding my fbsd-11 server after the system drive failed. I had been using Apache virtual servers to serve several web apps on port 80, with a single wildcard DNS entry from No-IP. The server also hosted a Linux vm running in vbox, and used the vbox NAT to forward vm port 80 to host 8080, and vm port 22 to host 3022. This worked well as I only have one IP address from my ISP. The virtual hosts are accessed normally e.g. www.dalescott.net (WordPress), mantisbt.dalescott.net, timetracker.dalescott.net..., I can ssh to the vm on port 3022, and the vm web server is accessed with port number i.e. http://dalescott.net:8080.
Then the system drive failed and it seemed a good time to re-build it with fbsd-12, and switch at least some of the web apps (not the vm) to https with LetsEncrypt certs. My understanding of LetsEncrypt (and certbot and the Apache certbot plugin) is that subdomain DNS entry will be required for each Apache virtual server that will https. So I removed the wild card from my dalescott.net DNS entry and configured new subdomain DNS entries for the Apache virtual servers. However I didn't create certificates or change Apache httpd-vhosts.conf, and I'm still not trying to serve anything but pure http on port 80.
The problem is that I can access all my virtual servers and ssh to the vm using port 3022, but I get a "no server response" error in the browser when trying to access the vm web server on port 8080.
Because it worked before, I'm assumming I created a situation with the subdomain DNS entries and my Apache httpd-vhosts.conf where Apache is grabbing the port 8080 requests and not responding, instead of the request getting to the vm. Is that possible? Can you tell where I've gone wrong, or have suggestions for diagnosing? Does anyone want to see my httpd.conf and httpd-vhosts.conf?
More information about the freebsd-questions