建立 certificate
mkdir /etc/lighttpd/ssl/domain.com -p cd /etc/lighttpd/ssl/domain.com openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes chown lighttpd:lighttpd /etc/lighttpd/ssl -R chmod 0600 /etc/lighttpd/ssl/domain.com
設定 lightty
$SERVER["socket"] == "0:443" { server.document-root = "/home/lighttpd/domain.com" ssl.engine = "enable" ssl.pemfile = "/etc/lighttpd/ssl/domain.com/server.pem" }
沒有留言:
張貼留言