标签:res tcp usr arguments php url module config 编辑
vim /usr/local/nginx/conf/vhost/ssl.conf//加入如下内容curl https://aming.com/
浏览器访问:
错误!!
/usr/local/nginx/sbin/nginx -t
nginx: [emerg] unknown directive "ssl" in /usr/local/nginx/conf/nginx.conf:185
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
是因为之前编译很简单的参数:
/usr/local/nginx/sbin/nginx -V
nginx version: nginx/1.12.2
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC)
configure arguments: --prefix=/usr/local/nginx
解决办法:
cd /usr/local/src/nginx-1.12.2
./configure --help|grep ssl
--with-http_ssl_module
./configure --prefix=/usr/local/nginx/ --with-http_ssl_module
make&&make install
/usr/local/nginx/sbin/nginx -V
configure arguments: --prefix=/usr/local/nginx/ --with-http_ssl_module
标签:res tcp usr arguments php url module config 编辑
原文地址:http://blog.51cto.com/lsxme/2058939