|
|
发表于 2018-5-1 22:07:12
|
显示全部楼层
akige 发表于 2018-5-1 21:56
报错:
Firefox has detected that the server is redirecting the request for this address in a wa ...
- server {
- listen 80 ;
-
- listen 443 ssl http2;
- ssl on;
- ssl_certificate /usr/local/nginx/conf/ssl/www.mysite.com/fullchain.cer;
- ssl_certificate_key /usr/local/nginx/conf/ssl/www.mysite.com/www.mysite.com.key;
- ssl_session_timeout 5m;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_prefer_server_ciphers on;
- ssl_ciphers "EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5";
- ssl_session_cache builtin:1000 shared:SSL:10m;
- # openssl dhparam -out /usr/local/nginx/conf/ssl/dhparam.pem 2048
- ssl_dhparam /usr/local/nginx/conf/ssl/dhparam.pem;
-
- server_name www.mysite.com mysite.com;
-
- if ($http_host != $server_name) {
- return 301 https://$server_name$request_uri;
- }
- if ($scheme = http) {
- return 301 https://$server_name$request_uri;
- }
- index index.html index.htm index.php default.html default.htm default.php;
- root /home/wwwroot/www.mysite.com;
-
- include rewrite/laravel.conf;
-
- include enable-php-pathinfo.conf;
- location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
- {
- expires 30d;
- }
- location ~ .*\.(js|css)?$
- {
- expires 12h;
- }
- location ~ /.well-known {
- allow all;
- }
- location ~ /\.
- {
- deny all;
- }
- access_log /home/wwwlogs/www.mysite.com.log;
- }
复制代码 |
|