我最近根据以下教程在我的Ubuntu服务器上安装了Letsencrypt。
http://www.jeffmould.com/2016/05/14/install-lets-encrypt-ssl-certificate-laravel/
我完成了所有步骤并成功重启了我的服务器。当我拉起我的网页时,该网站仍然说与该网站的连接不安全。
此演示中是否存在可能对我有所帮助的内容。谢谢你的帮助!
server {
listen 80 default_server;
listen [::]:80 default_server;
listen 443; #added at ssl
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#
# include snippets/snakeoil.conf;
root /var/www/laravel/public;# - PREVIOUSLY USED - ADDED NEXT TWO LINES
# root /var/www/laravel;
# location ~ /.well-known { allow all; }
# these are the paths to our certificate files. You should really only have to
# change the names of the domain directory, as the file names are consistent with
# Let's Encrypt.
ssl_certificate /etc/letsencrypt/live/www.mydomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.mydomain.com/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDH$
ssl_session_cache shared:SSL:10m;
# this is the path the to dhparam.pem file you created in Step 4
ssl_dhparam /etc/ssl/certs/dhparam.pem;
ssl_session_timeout 1d;
ssl_session_tickets off;
ssl_stapling on;
ssl_stapling_verify on;
# Add index.php to the list if you are using PHP
index index.php index.html index.htm;
server_name mydomain.com;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.php?$query_string;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#
# # With php7.0-cgi alone: