192.168.1.157 example.com 192.168.1.157 1.example.com 192.168.1.157 2.example.com 192.168.1.157 3.example.com $SERVER["socket"] == "xxx.xxx.xxx.xxx:443" { ssl.engine = "enable" ssl.pemfile = "/etc/lighttpd/ssl/server.pem" url.rewrite-once = ( "^/([^//]+)/(.+)" => "http://$1.example.com/$2") } proxy.server = ( "" => ( ( "host" => "xxx.xxx.xxx.xxx", "port" => "81" ) )
![リバースプロキシでSSL証明書のコスト削減!](https://cdn-ak-scissors.b.st-hatena.com/image/square/39e482c008d605a5b5f9180e98756d084baf2b67/height=288;version=1;width=512/https%3A%2F%2Fblog.asial.co.jp%2Fogp-logo.jpg)