Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter âcâ to cancel): 1
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for cloud.DOMAIN.nl
Waiting for verificationâŚ
Cleaning up challenges
Failed authorization procedure. cloud.DOMAIN.nl (http-01): urn:ietf:params:acm e:error:unauthorized :: The client lacks sufficient authorization :: Invalid res ponse from http://cloud.DOMAIN.nl/.well-known/acme-challenge/Mycrj8dvNBtG-vV53 0zHCUCbV61uLTaex_dBSuajQWU [..*.213]: â\n\n404 Not Found\n\n
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
I am 100% sure i have an A record in my domain DNS. I use the same name for a different working Nextcloud ubuntu setup (which is of course off at the moment).
So because i use the same name and internal IP address, i also know there is no firewall issue. I also tried a different hostname (with newly setup A record) and different external and internal IP. I keep getting the same errorâŚ
I have followed the HowTo to the letter, but i think something is still not rightâŚ
The HowTo is pretty straight forward so to be honest i feel a bit stupid⌠But i just canât seem to get it rightâŚ
I am pretty novice when it comes to linux (so please be very gentle ), but i do know my way around networks/firewalls etc.
You left your IP address in your post⌠Maybe you wanna change that.
I tested it and it comes up with the Apache Default page. I tried it via IP address, and via domain name. (this one I didnât find in your post) So if the IP address in your post actualy is the server you are working on, it is not a DNS issue.
Check your VirtaulHost config file.
Did you specify the Servername directive correctley in the config file?
VirtualHost configuration:
*:80 is a NameVirtualHost
default server cloud.DOMAIN.nl (/etc/apache2/sites-enabled/000-defaul t.conf:1)
port 80 namevhost cloud.DOMAIN.nl (/etc/apache2/sites-enabled/000-def ault.conf:1)
port 80 namevhost cloud.DOMAIN.nl (/etc/apache2/sites-enabled/nextclo ud.conf:1)
ServerRoot: â/etc/apache2â
Main DocumentRoot: â/var/www/htmlâ
Main ErrorLog: â/var/log/apache2/error.logâ
Mutex rewrite-map: using_defaults
Mutex default: dir="/var/run/apache2/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
PidFile: â/var/run/apache2/apache2.pidâ
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name=âwww-dataâ id=33
Group: name=âwww-dataâ id=33
root@cloud:~#
nano /etc/apache2/sites-available/nextcloud.conf
I entered a different DocumentRoot (/var/www/nextcloud)⌠I looks like it is not saving that.
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the requestâs Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName cloud.DOMAIN.nl
To be honest, I canât really figure out your config. It looks like there is a lot missing. Was this created with Webmin or a similar tool? The link to the tutorial you linked also seems to be broken.
Maybe itâs easier to start again from scratchâŚ?
LearnLinux.tv has a good tutorial, if you like to follow a video tutorial. Itâs for Ubuntu, but should work on Debian too. The guide is relatively basic, but includes everything to get you going. The channel is also a good starting point to learn a few basic linux skills btw