certbot certonly --webroot -w /usr/share/nginx/html -d git.sanjiang.com
ngixn gitlab的配置地址
vi /var/opt/gitlab/nginx/conf/gitlab-http.conf
./certbot-auto certonly --webroot -w /usr/share/nginx/html -d git.sanjiang.com
ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4
./certbot-auto certonly --webroot -w /usr/share/nginx/html -d dingding.sanjiang.com
dig -t TYPE257 dingding.sanjiang.com
return 301 https://git.sanjiang.com:443$request_uri;
turn 301 https://$server_name$request_uri;
location ^~ /.well-known/acme-challenge/ { alias /home/ubuntu/challenges/; try_files $uri =404; }
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: git.sanjiang.com
Type: unauthorized
Detail: Invalid response from
http://git.sanjiang.com/.well-known/acme-challenge/JNQTGsXU5gUqe7jnQ2w6fPIGXC6bScQkQBpQpTlPJMk:
"<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>"
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.
./certbot-auto certonly --manual --preferred-challenges dns -d git.sanjiang.com