Laravel 8 通配符 SSL

2021-06-22 17:21 更新

Homestead.yaml 文件的 sites 部分,可以給每個(gè)站點(diǎn)定義一個(gè)自簽名 SSL 證書。如果你想給某個(gè)網(wǎng)站生成一個(gè)通配符 SSL 證書,可以通過添加 wildcard 配置項(xiàng)來實(shí)現(xiàn)。默認(rèn)情況下,網(wǎng)站會(huì)使用通配符證書 而不是 特定域證書

- map: foo.domain.test
  to: /home/vagrant/domain
  wildcard: "yes"

如果 use_wildcard 配置項(xiàng)設(shè)置為 no,通配符證書會(huì)生產(chǎn)但是不會(huì)使用。

- map: foo.domain.test
  to: /home/vagrant/domain
  wildcard: "yes"
  use_wildcard: "no"
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)