nginx配置自动转https站点
2017-10-09 09:17
423 查看
nginx配置自动转https站点,全部内容
server { listen 80 ; #listen [::]:80 default_server ipv6only=on; server_name www.vueyun.com; return 301 https://www.vueyun.com$request_uri; } server { listen 443; #listen [::]:80; server_name www.vueyum.com; index index.html index.htm index.php default.html default.htm default.php; root /home/wwwroot/default/laravellte/public; ssl on; ssl_certificate cert/575678678.pem; ssl_certificate_key cert/6785686578.key; include enable-php.conf; #include enable-php-pathinfo.conf; location /nginx_status { stub_status on; access_log off; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 12h; } location ~ /.well-known { allow all; } location ~ /\. { deny all; } location / { try_files $uri $uri/ /index.php?$query_string; } access_log /home/wwwlogs/access.log; } include vhost/*.conf; }
相关文章推荐
- nginx配置https并强制http自动跳转到https
- [node]:Nginx配置多站点+https & 使用pm2管理后台node进程
- 用Nginx配置https加密站点
- 什么是ssl证书,什么是https,nginx如何配置ssl证书,兼容https与http同时访问站点
- Nginx配置https的wordpress站点,wp-content目录下资源404解决方案
- nginx配置http自动转发https
- Centos7.2下Nginx配置SSL支持https访问(站点是基于.Net Core2.0开发的WebApi)
- nginx证书制作以及配置https并设置访问http自动跳转https(反向代理转发jboss)
- Nginx下配置HTTPS(SSL)安全站点
- Nginx 配置 SSL 证书 + HTTPS 站点
- 在ubuntu上安装和配置nginx https站点
- Nginx 配置 SSL 证书 + HTTPS 站点小记
- nginx配置http访问自动跳转到https
- Nginx-配置https虚拟服务(访问http时自动跳转https)
- 用Nginx配置https加密站点 nginx学习之一Location,rewrite,防盗链,禁止访问
- Linux下 Nginx 配置 http自动转https
- 用Nginx配置https加密站点
- 配置nginx实现负载均衡和HTTPS
- nginx配置https方法
- nginx配置负载均衡,tomcat宕机响应缓慢,自动切换的问题