Linking multiple domain names to different web applications

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

0 Replies

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct