Nginx配置阿里云https服务
2017-10-27 09:24
489 查看
博客原地址https://xgs888.top/post/view?id=23
#https访问 server { listen 443; server_name www.baidu.com; root /var/www/html; index index.php index.html index.htm; ssl on; location / { try_files $uri $uri/ /index.php?$query_string; #client_max_body_size 50m; } ssl_certificate cert/214227810490073.pem; ssl_certificate_key cert/214227810490073.key; ssl_session_timeout 5m; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name; include fastcgi_params; } location ~ /\.ht { deny all; } } #配置其他端口 server { listen 80; server_name localhost; root /var/www/html; index index.php index.html index.htm; location / { try_files $uri $uri/ /index.php?$query_string; #client_max_body_size 50m; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name; include fastcgi_params; } location ~ /\.ht { deny all; } }
相关文章推荐
- Nginx配置阿里云https服务
- 从0开始搭建阿里云(腾讯云)ubuntu16.04 nodejs + nginx + mysql + pm2 服务(五、nginx https 配置)
- 阿里云ubuntu配置安装nginx,配置域名和HTTPS
- Nginx + Tomcat + Openssl 配置https的web服务
- 【HTTPS】自签CA证书 && nginx配置https服务
- Nginx 配置https 服务
- 阿里云Center OS 6.2 Nginx 配置 SSL/TLS HTTPS配置
- 阿里云https+nginx服务搭建
- 阿里云https配置,nginx多证书配置
- 阿里云上配置HTTPS服务
- CentOS 6.5 实例配置 Nginx + HTTPS 服务
- 阿里云上,Ubuntu下配置Nginx,在tomcat中加了https协议就不可以了
- 阿里云配置免费Https服务
- Nginx作为WEB服务相关配置(性能优化,网络连接,访问控制,虚拟主机,https等等)
- Nginx--官网中文翻译(中英文对比)--12-配置https服务Configuring HTTPS servers
- nginx配置https服务
- [置顶] nginx中配置https的服务页面中引用http资源问题
- 阿里云服务器centos7.4操作系统Apache配置https服务
- 使用阿里云https证书nginx安装配置详解
- 阿里云LINUX服务器配置HTTPS(NGINX)