Linking multiple domain names to different web applications
I want to know how to link multiple domains to different web applications, which are deployed in Tomcat 7, which is in a single Linode instance.
I have already hosted a web application and linked to
I need your help to know how to configure the same in the lighttpd.conf to link multiple domain names to multiple web applications.
I used below configuration to link myspellmate.com domain to the web application deployed in my tomcat 7 server.
$HTTP["host"] =~ "23.92.26.242" {
proxy.server = (
"" => (
"tomcat" => (
"host" => "127.0.0.1",
"port" => 8080,
"fix-redirects" => 1
)
)
)
}
$HTTP["host"] == "myspellmate.com" {
proxy.server = (
"" => (
"tomcat" => (
"host" => "127.0.0.1",
"port" => 8080,
"fix-redirects" => 1
)
)
)
}
$HTTP["host"] == "
proxy.server = (
"" => (
"tomcat" => (
"host" => "127.0.0.1",
"port" => 8080,
"fix-redirects" => 1
)
)
)
}
Best regards
Santhosh V