ithewei 5 years ago
parent
commit
b2064a728a
3 changed files with 8 additions and 6 deletions
  1. 1 1
      config.mk
  2. 6 4
      etc/httpd.conf
  3. 1 1
      readme_cn.md

+ 1 - 1
config.mk

@@ -7,7 +7,7 @@ WITH_HTTP_SERVER=yes
 WITH_HTTP_CLIENT=yes
 
 # WITH_CONSUL need WITH_HTTP_CLIENT=yes
-WITH_CONSUL=yes
+WITH_CONSUL=no
 
 # features
 # base/hsocket.c: replace gethostbyname with getaddrinfo

+ 6 - 4
etc/httpd.conf

@@ -10,13 +10,15 @@ log_filesize = 64M
 worker_processes = 4
 
 # http server
-ssl = off
-ssl_certificate = cert/server.crt
-ssl_privatekey = cert/server.key
-ssl_ca_certificate = cert/cacert.pem
 port = 8080
 base_url = /v1/api
 document_root = html
 home_page = index.html
 #error_page = error.html
 index_of = /downloads/
+
+# SSL/TLS
+ssl = off
+ssl_certificate = cert/server.crt
+ssl_privatekey = cert/server.key
+ssl_ca_certificate = cert/cacert.pem

+ 1 - 1
readme_cn.md

@@ -304,5 +304,5 @@ sudo echo-servers/benchmark.sh
 
 ## 学习资料
 
-- libhv每日一学博客: <https://hewei.blog.csdn.net/article/details/103903123>
+- libhv 博客专栏: <https://hewei.blog.csdn.net/category_9866493.html>
 - libhv QQ群`739352073`,欢迎加群讨论