SSL Reverse Proxy with lighttpd


#1

Hello,

i installed the rocketchat server and i am amazed! Now i wanted to configure the SSL Reverse Proxy and have some problems. Im using lighttpd.
In /etc/lighttpd/lighttpd.conf i have written this:

proxy.server = ( “/home” =>
( (
“host” => “127.0.0.1”,
“port” => 3000
) )
)
This is not working. In the Browser Tab the name and the logo is apering. But the site ist blank.

When im using this:

proxy.server = ( “/” =>
( (
“host” => “127.0.0.1”,
“port” => 3000
) )
)
It works! But all my requests on the domain are redirekted to rocketchat.This is not what i want. I want that “mydomain.com/home” is only directed to rocketchat.
Can someone help me?
And sorry for my bad english…


#2

I have created a subdomain and configured the proxy on it. That worked.
In /etc/lighttpd/lighttpd.conf i have written this:

$HTTP[“host”] =~ “(^chat.mydomain.com)” {
proxy.balance = “fair”
proxy.server = ( “” => (
( “host” => “127.0.0.1”, “port” => 3000)
)
)
}