[英]Localhost server with php and ssl
我正在搜索允許使用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文件。
我現在正在使用laragon內置的ssl即時通訊,並且它們支持很棒的東西https://laragon.org/download/index.html
注意:windows
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.