AMH 社区首页
AMH社区 - 开放自由有价值的社区
[综合话题] AMH开发者平台正式上线。 |
|
---|---|
z069 |
amysql 发表于 2016-08-15 18:18:35
楼上的,开启SSL后自动就H2了,申请个证书,然后在
/home/wwwroot/环境名/vhost中新建一个https.conf,内容如下(记得修改XXXXXXXXXX的部分为自己的域名,43、61、62行改为自己证书所在的目录): server { listen 443 ssl http2 default_server; #listen end server_name XXXXXXXXXX.com www.XXXXXXXXXX.com tb.XXXXXXXXXX.com; #server_name end index index.html index.htm index.php; #index end set $subdomain ''; if ( $host ~* "(?:(\w+\.){0,})(\b(?!www\b)\w+)\.\b(?!(com|org|gov|net|cn)\b)[a-z\-0-9]+\.[a-zA-Z]+" ) { set $subdomain "/$2"; } root /home/wwwroot/LNMP/domain/XXXXXXXXXX.com/web$subdomain; include /home/wwwroot/LNMP/rewrite/amh.conf; #rewrite end #error_page location ~ /ErrorPages/(400|401|403|404|405|502|503)\.html$ { root /home/wwwroot/LNMP/domain/XXXXXXXXXX.com/web; } location ~ .*\.php$ { fastcgi_pass unix:/tmp/php-cgi-LNMP-XXXXXXXXXX.com.sock; fastcgi_index index.php; include fcgi.conf; fastcgi_param DOCUMENT_ROOT /home/wwwroot/LNMP/domain/XXXXXXXXXX.com/web$subdomain; fastcgi_param SCRIPT_FILENAME /home/wwwroot/LNMP/domain/XXXXXXXXXX.com/web$subdomain$fastcgi_script_name; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp3|wma)$ { expires 30d; } location ~ .*\.(js|css)$ { expires 12h; } ssl_session_cache shared:SSL:50m; ssl_session_timeout 1d; ssl_session_tickets off; ssl_stapling on; ssl_stapling_verify on; ssl_trusted_certificate /home/wwwroot/LNMP/etc/XXXXXXXXXX.chained.crt; resolver 223.5.5.5 119.29.29.29 valid=300s; resolver_timeout 10s; ssl_dhparam /root/dhparam.pem; ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:ECDHE-RSA-AES128-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA128:DHE-RSA-AES128-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA128:ECDHE-RSA-AES128-SHA384:ECDHE-RSA-AES128-SHA128:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-SHA128:DHE-RSA-AES128-SHA128:DHE-RSA-AES128-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA384:AES128-GCM-SHA128:AES128-SHA128:AES128-SHA128:AES128-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4"; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload"; add_header X-Frame-Options DENY; add_header X-Content-Type-Options nosniff; access_log off; #access_log end error_log /dev/null; #error_log end ssl on; ssl_certificate /home/wwwroot/LNMP/etc/XXXXXXXXXX.chained.crt; ssl_certificate_key /home/wwwroot/LNMP/etc/XXXXXXXXXX.com.key; } 最后重启nginx
点赞,加油! (0分)
回复
2016-08-19 08:42:33 11
|
z069 |
对了,48行是DHP,如果不用的话,删掉就行了,不删网站会错误
回复
2016-08-19 08:43:28 12
|
1754259520 |
有的时候在外面手机打开页面不好操作
最好加个手机端
回复
2016-08-20 18:49:50 13
|
CallMeR |
为啥php版本停止在了7.0.7,不升级啦~最新的到了7.0.10啦
回复
2016-08-23 00:37:43 14
|
hiamh |
发展势头不错,加油!
回复
2016-08-25 09:44:18 15
|
Shane |
找不到发帖的入口,只好发到这里了:
我在后台下载并安装了memcached,搭建了lnmp的环境,但是我在网站程序的后台里检测不到memcached功能. 我的网站程序是微信管理后台微擎0.8。 不知道这是何故啊... 是还需要做什么配置吗? 希望懂得大神帮忙解答一下。
回复
2016-08-30 09:45:53 16
日拱一卒 功不唐捐 |
omgame |
找不到发帖入口,紧急求助大大:
后台进不去,提示错误102 执行amh nginx start 提示 nginx: unknown directive "RewriteCond" in /usr/local/nginx/conf/rewrite/ amh.conf:1 怎么解决
回复
2016-09-07 20:14:15 17
|
社区123网 |
http://ip:8888 管理员账号 密码 值得是哪一个 我登陆不上去 www.cnsq123.com 急呀!!!!!!!!
回复
2016-09-10 23:02:40 18
|
blackywp |
为什么没发帖的地方了~
回复
2016-09-19 15:46:52 19
|
agen |
炒鸡喜欢你家UI
回复
2016-09-23 21:04:49 20
|