目录位置:/alidata/server/nginx-1.4.4/conf/vhosts
server {
listen 443 ssl; server_name ; ssl on; ssl_certificate /alidata/server/nginx-1.4.4/conf/vhosts/www..pem; ssl_certificate_key /alidata/server/nginx-1.4.4/conf/vhosts/www..key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { root /alidata/www/default; index index.html index.htm hello.php index.php; } location ~ .*\.(php|php5)?$ { location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 1h; } root /alidata/www/default; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param HTTPS on; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; #new line include fastcgi.conf;
} } |
server {
listen 80; server_name www.; rewrite ^(.*)$ https://$server_name$1 permanent; index index.html index.htm index.php; root /alidata/www/default; location ~ .*\.(php|php5)?$ { #fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 1h; } #伪静态规则 include /alidata/server/nginx/conf/rewrite/default.conf; access_log /alidata/log/nginx/access/default.log; } |
GDCA致力于网络信息安全,已通过WebTrust 的国际认证,是全球可信任的证书签发机构。GDCA专业技术团队将根据用户具体情况为其提供最优的产品选择建议,并针对不同的应用或服务器要求提供专业对应的HTTPS解决方案。
GDCA一直以“构建网络信任体系,服务现代数字生活”的宗旨,致力于提供全球化的数字证书认证服务。其自主品牌——信鉴易 SSL证书:包括 OVSSL、EVSSL、代码签名证书等。为涉足互联网的企业打造更安全的生态环境,建立更具公信力的企业网站形象。
猜你喜欢