Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Apr 10, 2014 4:51 am 
Offline

Joined: Thu Apr 10, 2014 4:43 am
Posts: 1
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group