在centos中,配置nginx的https時,出現以下錯誤。 nginx: [emerg] unknown directive "ssl" in /usr/local/nginx/conf/nginx.conf:102,說明編譯是沒有啓用SSL。nginx
./configure --with-http_ssl_module
make
cp objs/nginx /usr/local/nginx/sbin/nginx
/usr/local/nginx/sbin/nginx -s reload
chmod -R 777 /usr/local/nginx/proxy_temp