2017-09-22 24 views
0

ssl 및 프록시로 Lighttpd 설정을 시도하고 있지만 제대로 작동하지 않습니다. 인증서와 개인 키를 설치했는데 제대로 작동하지만 SSL (ssl)을 사용하려고하면 포트 (443)가 응답하지 않습니다.ssl 및 프록시로 Lighttpd를 설정하는 방법

$HTTP["host"] == "carteirinha.ufabc.edu.br" { 
     proxy.server = ("" => ((
       "host" => "200.133.215.50", 
       "port" => 9004 
     ))) 
     ssl.engine = "enable" 
     ssl.pemfile = "/etc/lighttpd/ssl/private_key.pem" 
     ssl.ca-file = "/etc/lighttpd/ssl/certificate_file.crt" 

} 

내 lighttpd.conf가은 다음과 같습니다 :

server.modules = (
     "mod_access", 
     "mod_alias", 
     "mod_compress", 
     "mod_redirect", 
#  "mod_rewrite", 
) 

server.document-root  = "/var/www" 
server.upload-dirs   = ("/var/cache/lighttpd/uploads") 
server.errorlog    = "/var/log/lighttpd/error.log" 
server.pid-file    = "/var/run/lighttpd.pid" 
server.username    = "www-data" 
server.groupname   = "www-data" 

index-file.names   = ("index.php", "index.html", 
           "index.htm", "default.htm", 
           " index.lighttpd.html") 

url.access-deny    = ("~", ".inc") 

static-file.exclude-extensions = (".php", ".pl", ".fcgi") 

include_shell "/usr/share/lighttpd/use-ipv6.pl" 

dir-listing.encoding  = "utf-8" 
server.dir-listing   = "enable" 

compress.cache-dir   = "/var/cache/lighttpd/compress/" 
compress.filetype   = ("application/x-javascript", "text/css", "text/html", "text/plain") 

include_shell "/usr/share/lighttpd/create-mime.assign.pl" 
include_shell "/usr/share/lighttpd/include-conf-enabled.pl" 

답변

0

당신은 포트 443에서 수신하도록 lighttpd를 말할 필요

내 구성 파일 (conf의 사용/10 proxy.conf)입니다 :

$SERVER["socket"] == ":443" { 
    ssl.engine = "enable" 
    ssl.pemfile = "/etc/lighttpd/ssl/private_key.pem" 
    ssl.ca-file = "/etc/lighttpd/ssl/certificate_file.crt" 
}