Nginx如何安裝withSSL模塊
Nginx安裝withSSL模塊
Nginx 配置文件,開啟ssl訪問時(shí),報(bào)出錯(cuò)誤信息:
nginx: [emerg] the “ssl” parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx_proxy.mimvp.com.conf:76
原因分析:
nginx缺少http_ssl_module模塊,編譯安裝的時(shí)候帶上 --with-http_ssl_module 配置就行了
with-http_ssl_module:提供SSL加密功能
備注:
Nginx統(tǒng)一安裝1.10.2版本
1.安裝編譯工具及庫文件
yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel
2.安裝PCRE
wget http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz tar zxvf pcre-8.35.tar.gz cd pcre-8.35 ./configure make && make install pcre-config --version
3.安裝Nginx
wget -O /data/software/nginx-1.10.2.tar.gz http://nginx.org/download/nginx-1.10.2.tar.gz
tar -zxvf /data/software/nginx-1.10.2.tar.gz
cd /data/software/nginx-1.10.2
./configure --prefix=/data/apps/nginx-main \
--pid-path=/data/logs/nginx-main/nginx.pid \
--lock-path=/data/apps/nginx-main/nginx.lock \
--error-log-path=/data/logs/nginx-main/error.log \
--http-log-path=/data/logs/nginx-main/access.log \
--http-client-body-temp-path=/data/temps/nginx-main/client_body_temp \
--http-proxy-temp-path=/data/temps/nginx-main/proxy_temp \
--http-fastcgi-temp-path=/data/temps/nginx-main/fastcgi_temp \
--http-uwsgi-temp-path=/data/temps/nginx-main/uwsgi_temp \
--http-scgi-temp-path=/data/temps/nginx-main/scgi_temp \
--with-http_stub_status_module \
--with-http_ssl_module \
--with-http_realip_module \
--with-pcre=/data/software/pcre-8.35
make
make install到此這篇關(guān)于Nginx安裝withSSL模塊的文章就介紹到這了,更多相關(guān)Nginx安裝withSSL模塊內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Nginx實(shí)現(xiàn)靜態(tài)資源的反向代理實(shí)例
這篇文章主要介紹了Nginx實(shí)現(xiàn)靜態(tài)資源的反向代理實(shí)例,本文通過分析github發(fā)現(xiàn)這個(gè)應(yīng)用,可以避免在https的網(wǎng)站中出現(xiàn)http鏈接,需要的朋友可以參考下2015-03-03
Nginx優(yōu)化服務(wù)之網(wǎng)頁壓縮的實(shí)現(xiàn)方法
這篇文章主要介紹了Nginx優(yōu)化服務(wù)之網(wǎng)頁壓縮的實(shí)現(xiàn)方法,本文給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2021-01-01
Nginx+Lua動(dòng)態(tài)加載黑名單的實(shí)現(xiàn)方案
本文給大家介紹Nginx+Lua動(dòng)態(tài)加載黑名單的完整技術(shù)實(shí)現(xiàn)方案,包含核心原理、代碼實(shí)現(xiàn)和性能優(yōu)化策略,感興趣的朋友跟隨小編一起看看吧2025-10-10
Nginx 502 Bad Gateway錯(cuò)誤原因及解決方案
這篇文章主要介紹了Nginx 502 Bad Gateway錯(cuò)誤原因及解決方案,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友可以參考下2020-11-11
nginx 反向代理之 proxy_pass的實(shí)現(xiàn)
這篇文章主要介紹了nginx 反向代理之 proxy_pass的實(shí)現(xiàn),文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2020-11-11

