V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
thank4
V2EX  ›  Linux

请问下关于 nginx 的配置!!

  •  
  •   thank4 · Dec 20, 2017 · 2554 views
    This topic created in 3055 days ago, the information mentioned may be changed or developed.
    我在配置 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 replies    2017-12-20 17:28:31 +08:00
    tuding
        1
    tuding  
       Dec 20, 2017
    何不把配置文件一并贴出来
    defunct9
        2
    defunct9  
       Dec 20, 2017
    开 ssh,我上去给你调
    hgc81538
        3
    hgc81538  
       Dec 20, 2017
    编译加上 --with-openssl 試試
    thank4
        4
    thank4  
    OP
       Dec 20, 2017
    已经解决了,升级了系统的 openssl 包,解决了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2564 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 07:47 · PVG 15:47 · LAX 00:47 · JFK 03:47
    ♥ Do have faith in what you're doing.