Dear Experts,
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
www.myspellmate.com. Now I want to host another web application and link it to a new domain called
http://srirajarajeshwariproperties.com . This domain is now pointing to my IP and seeing the default "It Works!" page..
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"] == "www.myspellmate.com" {
proxy.server = (
"" => (
"tomcat" => (
"host" => "127.0.0.1",
"port" => 8080,
"fix-redirects" => 1
)
)
)
}
Best regards
Santhosh V