实际上,我正在开发一个webapp,前端使用Reactjs,后端使用Golang。这两个程序分别托管在Google-Compute-Engine上的两个VM上。我想通过https服务我的应用程序,所以我选择使用Nginx来服务生产的前端。首先,我为Nginx创建了配置文件
#version: nginx/1.14.0 (ubuntu)
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/banshee;
server_name XX.XXX.XX.XXX; #public IP of my frontend VM
index index.html;
location / {
try_files $uri /index.html =404;
}
}对于这个部分,一切都如预期的那样工作,但在此之后,我想在https上使用本教程之后的应用程序。我安装了软件包software-properties-common、python-certbot-apache和certbot,但当我尝试时
sudo cerbot --nginx certonly
我收到以下信息:
gdes@frontend:/etc/nginx$ sudo certbot --nginx certonly
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Could not choose appropriate plugin: The requested nginx plugin does not appear to be installed
The requested nginx plugin does not appear to be installed我在谷歌( Google )上搜索了一些东西,但我仍然找不出哪个插件丢失了,或者用其他方法解决了这个问题。
有人有办法帮我吗?
非常感谢:)
发布于 2019-05-30 11:45:08
我试图为我的子域使用certbot创建“让我们加密证书”,有以下问题。命令:
ubuntu@localhost:~$ certbot --nginx -d my_subdomain.website.com
发行:
请求的nginx插件似乎没有安装。
解决方案:
Ubuntu 20+
ubuntu@localhost:~$ sudo apt-获取安装python3 3-certbot-nginx
早期版本
ubuntu@localhost:~$ sudo apt-get install python-certbot-nginx
发布于 2020-10-28 10:38:10
你需要替换
apt install python-certbot-nginx通过
apt install python3-certbot-nginx发布于 2018-11-09 12:59:53
您可以使用以下命令安装Certbot nginx插件:
add-apt-repository ppa:certbot/certbot
apt update
apt install python-certbot-nginxhttps://stackoverflow.com/questions/53223914
复制相似问题