https配置
代码如下 | 复制代码 |
server { ssl on; ssl_session_timeout 5m; ssl_protocols SSLv2 SSLv3 TLSv1; location / { |
实例 nginx接入https关键配置文件
代码如下 | 复制代码 |
ssl on; access_log /data/logs/SSL_www.test.com_access.log; root /www/test/ssl/web; index index.php index.html index.htm; if ($uri !~ ^.*(.xml|.html|.htm|index.php|soap.php|php.php|health.php|status|.swf|.css|.js|.gif|.png|.jpg|.jpeg|.ico)){ location ~ .php$ { |
实例 nginx接入ssl完整配置文件
代码如下 | 复制代码 |
server ssl on; access_log /data/logs/SSL_www.test.com_access.log; root /www/test/ssl/web; index index.php index.html index.htm; if ($uri !~ ^.*(.xml|.html|.htm|index.php|soap.php|php.php|health.php|status|.swf|.css|.js|.gif|.png|.jpg|.jpeg|.ico)){ location ~ .php$ { |