这是一个创建于 2497 天前的主题,其中的信息可能已经有所发展或是发生改变。
我在配置 https 的启用 ssl,在是在使用./nginx -t 时候检查配置,但是报错
>nginx: [emerg] unknown directive "ssl" in /usr/local/nginx/conf/vhost/tpadmin.conf:46
看网上都说应该是 nginx 编译的时候缺少了 http_ssl_module,但是我 nginx -V 的时候显示
>nginx version: nginx/1.11.3
>built by gcc 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)
>built with OpenSSL 1.0.1e-fips 11 Feb 2013
>TLS SNI support enabled
>configure arguments: --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
证明 openssl 在编译安装的时候加了进去,请问还有可能是什么原因,谢谢
4 条回复 • 2017-12-20 17:28:31 +08:00
|
|
1
tuding 2017-12-20 16:19:08 +08:00
何不把配置文件一并贴出来
|
|
|
2
defunct9 2017-12-20 16:20:21 +08:00
开 ssh,我上去给你调
|
|
|
3
hgc81538 2017-12-20 16:25:33 +08:00
编译加上 --with-openssl 試試
|
|
|
4
thank4 2017-12-20 17:28:31 +08:00
已经解决了,升级了系统的 openssl 包,解决了
|