Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Nov 2020 08:10:37 -0700 (MST)
From:      Dale Scott <dalescott@shaw.ca>
To:        Yuri Pankov <yuripv@yuripv.dev>,  freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Please help with Apache virtual servers and DNS trouble (I think)
Message-ID:  <958896405.36997717.1605885037710.JavaMail.zimbra@shaw.ca>
In-Reply-To: <df9e09e9-587b-f01b-2849-a90cbd518534@yuripv.dev>
References:  <dbf88edf-7b25-4944-b6c9-5e0d08533265@email.android.com> <df9e09e9-587b-f01b-2849-a90cbd518534@yuripv.dev>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
> From: "Yuri Pankov" <yuripv@yuripv.dev>
> To: "Dale Scott (dalescott@shaw)" <dalescott@shaw.ca>, "freebsd-questions" <freebsd-questions@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@shaw.ca wrote:
> ...Nothing...
> 
> 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?

Thanks,
Dale





Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?958896405.36997717.1605885037710.JavaMail.zimbra>