赞
踩
- nginx源码包位置 :
- ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
-
- 提示需要openssl :yum -y install openssl openssl-devel
-
- 编译 :make
-
- 用objs里的nginx替换/usr/local/nginx/sbin的nginx
-
- 重启
-
- 443变下载 : 没有配置fastcgi
-
-
- server {
- ssl on;
- listen 443 ssl;
- server_name wechat.canxingtv.com;
- root /data/cxtv/public;
- ssl_certificate /usr/local/nginx/conf/wechat.pem;
- ssl_certificate_key /usr/local/nginx/conf/wechat.key;
-
- ssl_session_cache shared:SSL:1m;
- ssl_session_timeout 5m;
-
- ssl_ciphers HIGH:!aNULL:!MD5;
- ssl_prefer_server_ciphers on;
-
- location / {
- index index.html index.htm index.php;
- }
- location ~ \.php$ {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
-
- }
- 关了谷歌的缓存
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。