Ideally your web server should allow both ports. If that’s not possible, for instance because your ISP blocks port 80, you’ll need to switch to the dns-01 challenge, or use an ACME client that supports tls-alpn-01.
Unfortunately there is no link to a p[age that explains how to do this.
Steps taken: I changed port-forwarding of my router. It redirects external port 80 (and external port 443) to internal port 443. Unfortunately that does not work.
Timeout after connect (your server may be slow or overloaded) To fix these errors, please make sure that your domain name was entered correctly and the DNS A/AAAA record(s) ... If you're using the webroot plugin, you should also verify that you are serving files from the webroot path you provided.
My web server is (include version): Apache/2.4.7 (Ubuntu)
The operating system my web server runs on is (include version): Ubuntu trusty (14)
that can't work. Redirect your external port 80 to your internal port 80 and your external 443 to your internal port 443. Redirecting two different protocols to the same destination is always bad.
There is a couple of them: https://i.imgur.com/00S9xuR.png
Some of them generated by letsencrypt I presume.
Can I just add a simple file in that folder with the redirect you pointed out?
It may be simpler to add the name to a block that already redirects all http to https.
[if one exists]
Or to add an http vhost config block to a similar file that is already included in the config.
Put in simplest form, you could have one file for all http blocks and one file for all https blocks.
And the http blocks might be able to be all merged into just one super simple block that redirects all http to https.
I can't see what names have already been used in which files, so it is difficult to say where you could best add anything.
You would be a great help by showing what line, characters, strings, or text to put where to make it work. No offense, but as a newbie (and other newbies may read this post too), I just don’t understand “There a redirect http -> https” or other suggestions in this thread.
My setup is very simple, I run Apache for a Nextcloud server on one machine. That machine relies on on https (port 443). Another machine runs a simple http site (port 80), but I don’t really use that site - and since yesterday my router fails to redirect to that port anyways.
Below are contents of the Nextcloud machine 000-default.conf file, default-ssl.conf.
The biggest problem (now) is that port 80 doesn’t respond from the Internet.
Without it you won’t be able to validate via HTTP-01 (which is soon to be required).
[you will need to seek alternate auth methods]
Okay, but the server on port 80 is often down, it’s a machine that I once in a while switch on. Most of the time it is just off.
Therefore, ignoring that machine, the closed port, and the faulty router (I will replace it), what do you mean with: "There a redirect http -> https
By offering the relevant configuration lines you would help me and others greatly.
At some point (when it was up), the https site would redirect to https.
Try searching for it with: grep -Eri 'premanent|rewrite|redirect|rule' /etc/apache2