小编Dan*_*iot的帖子

Yarn 2 init,添加失败

我正在试验纱线 2 和种植面。

我创建了一个新文件夹: /projects/yarn2/

根据他们的安装指南https://yarnpkg.com/getting-started我跑了

cd /projects/yarn2/
yarn set version berry
yarn init
Run Code Online (Sandbox Code Playgroud)

然后(根据他们的指南https://yarnpkg.com/getting-started/usage

yarn add react

并得到以下错误:

Usage Error: The nearest package directory (/projects/yarn2) doesn't seem to be part of the project declared in /projects.

- If the project directory is right, it might be that you forgot to list yarn2 as a workspace.
- If it isn't, it's likely because you have a yarn.lock or package.json file there, confusing the project root detection. …
Run Code Online (Sandbox Code Playgroud)

yarn-v2

6
推荐指数
3
解决办法
2183
查看次数

Apache SNI:一个IP地址上的多个SSL证书

今天我正在尝试将Apache配置为运行两个域,每个域都有自己的SSL证书.据我所知,只要我的Apache配置了最新版本的OpenSSL,SNI就支持这一点.我确认它是:

[notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.7 with Suhosin-Patch mod_ssl/2.2.22 OpenSSL/1.0.1 configured -- resuming normal operations
Run Code Online (Sandbox Code Playgroud)

我以为我已经成功设置了第二个域和证书,​​但是当我尝试访问chrome中的第二个域时,我收到以下错误:

You attempted to reach example2.com, but instead you actually reached a server identifying itself as example1.com.
Run Code Online (Sandbox Code Playgroud)

这篇文章似乎最接近我的问题:

在apache上托管多个SSL证书

但从我可以告诉我的服务器已经正确配置(显然它不是!)

我在example2.com的conf文件中有以下指令

ServerName  example2.com
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/example2.com.crt
SSLCertificateKeyFile /etc/apache2/ssl/example2.com.key
Run Code Online (Sandbox Code Playgroud)

它看起来对我来说.那么为什么apache在访问example2时会提供example1的证书?

apache ssl sni

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

apache ×1

sni ×1

ssl ×1

yarn-v2 ×1