Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to host multiple sites on a single webapp in a tomcat server. For example www.abc.com, www.xyz.com and several sites fetch content from my webapp hosted on tomcat with apache as the web server. My web app is hosted at www.mysite.com. www.abc.com should forward to www.mysite.com?id=abc www.xyz.com should forward to www.mysite.com?id=xyz

Can you tell me how to configure dns entries, apache and tomcat configuration to achieve this scenario?? These site will have to be added dynamically! so is there any way to update the dns entries dynamically without restarting the dns server ... and similarly for apache and tomcat also??

Thanks very much in advance

share|improve this question

migrated from stackoverflow.com May 7 '10 at 4:56

This question came from our site for professional and enthusiast programmers.

1  
=> serverfault.com (But: A DNS server that required a restart when you edited DNS information would not be fit for purpose. :) ) –  T.J. Crowder May 6 '10 at 14:47

2 Answers 2

You haven't stated which DNS server you're using. If it's BIND then just do rndc reload. That causes named to reload the config and zone files without doing a restart.

share|improve this answer

I think that your question might be malformed, but you can do this right now by just sending named a SIGHUP which will make it reload the name database.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.