配置文件成功的情况下打不开:开放端口 设置端口
server { listen 443 default ssl; //需要加不然会显示404 default ssl server_name 域名; ssl_certificate zhengshu/certificate.crt; ssl_certificate_key zhengshu/36xueshecom.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!3DES:!aNULL:!MD5:!ADH:!RC4; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; location / { try_files $uri $uri/ /index.php?$query_string; root /www/laravel/public; index index.html index.htm index.php; } location ~ .php$ { root /www/laravel/public; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }