Nginx配置将一切80转到https域名
Nginx配置将一切80转到https域名
server { listen 80; server_name xxx.com; index index.html index.php; root /srv/www/xxx/web; rewrite ^/(.*)$ https://www.xxx.com/$1 permanent; access_log /srv/logs/nginx/xxx.log main; }
Nginx配置将一切80转到https域名
server { listen 80; server_name xxx.com; index index.html index.php; root /srv/www/xxx/web; rewrite ^/(.*)$ https://www.xxx.com/$1 permanent; access_log /srv/logs/nginx/xxx.log main; }