I'm not sure how to configure things on the droplet end to use the load balancer.
I will keep my posts to one question at a time; So here is the first (in bold):
Which folder path exactly? {please show the full path created}
[Your location and the folder path your created are probably NOT matching one another.]
You used:
This is the path: ls -a /var/www/wikifamily/.well-known
. ..
This is the settings for the file:
server {
listen 0.0.0.0:80;
root /var/www/wikifamily;
index index.php;
server_name f0xwikis.rfx.fi
www.f0xwikis.rfx.fi
globalwiki.rfx.fi
www.globalwiki.rfx.fi;
location ~* \.php$ {
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
}
Instead of this
location ~ /.well-known {
default_type "text/plain";
root /var/www/wikifamily;
}
I'm going to try this
location ~ /.well-known {
default_type "text/plain";
root /var/www/wikifamily/.well-known;
}
Edit: It doesn't work.
You don't want to create your own exception if you're using the nginx
authenticator. If you want to create your own exception, use the webroot
authenticator instead:
--webroot -w /path/to/your/webroot
You need to understand what the location statement does to the URL request.
Please make some test files and folders to see where it actually connects to.
- make path:
/var/www/wikifamily/.well-known/acme-challenge/
place a test file: /var/www/wikifamily/.well-known/acme-challenge/test1 - make path:
/var/www/wikifamily/acme-challenge/
place a test file: /var/www/wikifamily/acme-challenge/test2 - place a test file: /var/www/wikifamily/acme-challenge/test3
- place a test file: /var/www/wikifamily/test4
Try all combinations to see which are accessible:
http://f0xwikis.rfx.fi/test1
http://f0xwikis.rfx.fi/test2
http://f0xwikis.rfx.fi/test3
http://f0xwikis.rfx.fi/test4
http://f0xwikis.rfx.fi/.well-known/test1
http://f0xwikis.rfx.fi/.well-known/test2
http://f0xwikis.rfx.fi/.well-known/test3
http://f0xwikis.rfx.fi/.well-known/test4
http://f0xwikis.rfx.fi/acme-challenge/test1
http://f0xwikis.rfx.fi/acme-challenge/test2
http://f0xwikis.rfx.fi/acme-challenge/test3
http://f0xwikis.rfx.fi/acme-challenge/test4
http://f0xwikis.rfx.fi/.well-known/acme-challenge/test1
http://f0xwikis.rfx.fi/.well-known/acme-challenge/test2
http://f0xwikis.rfx.fi/.well-known/acme-challenge/test3
http://f0xwikis.rfx.fi/.well-known/acme-challenge/test4
It first must be accessible before you continue testing with certbot
.
And the path must be corrected (if needed) to include the full challenge path.
[once the full path is working, then you can proceed with your certbot
testing]
I was following the directions but it doesn't work and keeps saying the droplet is down.
My recommendation to get your droplet functioning as quickly and effectively as possible would be to ask the DigitalOcean community:
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.