摘要: Summary 在APP中嵌入一个网页,相当于一个内置的浏览器,固定访问我们的服务。 Demo import UIKit import WebKit class ViewController: UIViewController { override func viewDidLoad() { supe 阅读全文
posted @ 2020-05-21 09:20 duchaoqun 阅读(1108) 评论(0) 推荐(0) 编辑
摘要: Summary 在访问异常的时候展示错误页面。 Demo1 内容根据需求写,如果404.html的小于512字节的话,那么IE会认为这个错误页面不够“友好”,会忽视掉的! 必须放置在网站根目录(www/)中 # 在httpd.conf中设置对目录开启。 AllowOverride All # 然后在 阅读全文
posted @ 2020-05-21 08:54 duchaoqun 阅读(297) 评论(0) 推荐(0) 编辑
摘要: Summary 在阿里云申请免费证书,得到如下三个文件 Demo # 安装软件 yum install mod_ssl openssl httpd -y # 修改配置文件/etc/httpd/conf.d/ssl.conf,将上述文件传到指定的位置上,然后修改如下配置值即可。 SSLCertific 阅读全文
posted @ 2020-05-21 08:46 duchaoqun 阅读(1471) 评论(0) 推荐(0) 编辑