【发布时间】:2019-04-18 17:56:43
【问题描述】:
我正在寻找允许使用 ssl 启动 php 文件的服务器。例如,我尝试过 python 简单服务器:
import BaseHTTPServer, SimpleHTTPServer
import ssl
httpd = BaseHTTPServer.HTTPServer(('127.0.0.1', 4443), SimpleHTTPServer.SimpleHTTPRequestHandler)
httpd.socket = ssl.wrap_socket (httpd.socket, keyfile='privkeyA.pem', certfile='certA.crt', server_side=True)
print("Server is working!")
httpd.serve_forever()
证书和密钥运行良好,但我只能启动 html 文件,因为此服务器不支持 php 文件。
【问题讨论】:
-
任何有 Apache 或 Nginx 的东西!
WAMPServer或XAMPP或者还有一些其他的 -
当然我们假设您是 Windows 用户
标签: php