Hello everyone. First of all I would like to say thank you for everything that you guys are doing. I found a similar topic like mine but it didn't work for me so here we are.
I'm running Debian 9.0 x64 with nginx.
While I'm trying to use certbot --nginx
, I'm getting the following output:
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 1
Keeping the existing certificate
Deploying Certificate to VirtualHost /etc/nginx/sites-enabled/00-default-ssl.conf
nginx: [emerg] "ssl_certificate" directive is duplicate in /etc/nginx/sites-enabled/00-default-ssl.conf:25
Rolling back to previous server configuration...
nginx restart failed:
My /etc/nginx/sites-enabled/00-default-ssl.conf:
server {
listen 443 ssl;
listen [::]:443 ssl ipv6only=on;server_name www.houseofgamers.club; root /var/www/hog; index index.php index.html; include /etc/nginx/templates/misc.tmpl; include /etc/nginx/templates/ssl.tmpl; include /etc/nginx/templates/iredadmin.tmpl; include /etc/nginx/templates/roundcube.tmpl; include /etc/nginx/templates/sogo.tmpl; include /etc/nginx/templates/netdata.tmpl; include /etc/nginx/templates/php-catchall.tmpl; include /etc/nginx/templates/stub_status.tmpl;
}
server {
listen 80;
listen [::]:80;
server_name www.houseofgamers.club;
return 301 https://www.houseofgamers.club$request_uri;
}
Running nginx -t
:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
certbot --version - certbot 0.28.0
To be honest I don't want to reinstall everything to get this problem fixed. Is there any solution to get this fixed?
Thanks in advance!!!