如何允许外部自定义域在服务器上运行Laravel应用?

时间:2019-03-23 08:12:06

标签: laravel ssl nginx cloudflare forge

我的应用程序是Laravel应用程序,它在Nginx上运行,由Forge提供,而SSL证书由CloudFlare提供。

它托管在https://www.myapp.com这样的URL上

我的应用程序的客户是企业,并且已经拥有他们的域:

https://www.customer1.com
https://www.customer2.com
https://www.customer3.com
etc.

我希望我的客户从他们选择的子域中运行MyApp:

https://some-name.customer1.com
https://some-other-name.customer2.com
https://any-name-they-want.customer3.com
etc.

我的客户应该 安装任何东西-MyApp仍在myapp.com上运行,而不是在其服务器上运行

我的客户应该 (如果可能)修改其DNS,可能添加一个类似于“ some-name”的CNAME指向“ myapp.com”

我关注了这篇惊人的文章:Dynamic custom domain routing in Laravel

但是我无法在https(带有SSL)环境中使用它-浏览器返回:

This site can’t provide a secure connection
some-name.customer1.com uses an unsupported protocol.

ERR_SSL_VERSION_OR_CIPHER_MISMATCH

The client and server don't support a common SSL protocol version or cipher suite.

应如何配置Nginx和/或SSL证书?

0 个答案:

没有答案
相关问题