V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
thank4
V2EX  ›  Linux

请问下关于 nginx 的配置!!

  •  
  •   thank4 · 2017-12-20 15:36:03 +08:00 · 1717 次点击
    这是一个创建于 2290 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我在配置 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
    tuding
        1
    tuding  
       2017-12-20 16:19:08 +08:00
    何不把配置文件一并贴出来
    defunct9
        2
    defunct9  
       2017-12-20 16:20:21 +08:00
    开 ssh,我上去给你调
    hgc81538
        3
    hgc81538  
       2017-12-20 16:25:33 +08:00
    编译加上 --with-openssl 試試
    thank4
        4
    thank4  
    OP
       2017-12-20 17:28:31 +08:00
    已经解决了,升级了系统的 openssl 包,解决了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1043 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:27 · PVG 06:27 · LAX 15:27 · JFK 18:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.