2013年9月22日星期日

A server, a tomcat, three domain , three different items

javaweb A server, a tomcat, three domain , three different items javaweb

Q1: JAVA WEB what needs to be exported to execute the package ? JAR, EAR, or WAR?

Q2: a server , a tomcat, three domain names, three different projects javaweb
To achieve this requirement, or tomcat server configuration should be how ? ? ?
------ Solution ---------------------------------------- ----
a single server deployment three web project is no problem , but if these three items are occupied port 80 is impossible.
And now resolved only if the domain name resolves to port 80 ( jump , then jump to the specified port )
The first question directly to the war file into tomcat webapps folder like, start tomcat will automatically unzip the file .
second , three web project , a tomcat, if you enter the domain name directly , it can only bind a default access ,
is the only access to an instance www.abc.com ,
If you deploy three tomcat , then only occupy a different port.
can try to jump directly to the domain name to jump to ip: port.
If you are , then you can split into VPS , but higher technical difficulty .
------ Solution ---------------------------------------- ----


If you deploy three tomcat , then only occupy a different port. This problem can be resolved using nginx to
------ Solution -------------------------- ------------------
nginx reverse proxy different ports on it.
------ Solution ---------------------------------------- ----
three web applications , you can use a port , as long as he can be a web name is different .
------ Solution ---------------------------------------- ----
unpackWARs = "true" autoDeploy = "true"
xmlValidation = "false" xmlNamespaceAware = "false">


unpackWARs = "true" autoDeploy = "true"
xmlValidation = "false" xmlNamespaceAware = "false">

There are several sites on the replication of several host
------ Solution ------------------------- -------------------
fact, I do not recommend doing so because if sometimes update a project , then will need to restart tomcat impact on other projects

The recommended approach should be different for each project tomcat then configure a different port , then re- erected in front of a nginx
------ For reference only ---- -----------------------------------
online look like virtual hosts.
------ For reference only -------------------------------------- -
configure the tomcat server.xml file node information , ; ------ For reference only --------------------------- ------------
directly in the conf to configure tomcat can write an xml file in conf directory. Such as : test items on the d disk,

------ For reference only --- ------------------------------------


Great God does not seem to be right tomcat deploy three different projects and different items each corresponding to their different domain
------ For reference only ----- ----------------------------------


do not understand, do not mislead people .
tomcat can configure virtual hosts, domain names through different access to different app, sharing port 80 .
configuration Baidu, a lot .
------ For reference only -------------------------------------- -

  
Great God does not seem to be right tomcat deploy three different projects and different items each correspond to a different domain name yourself  

  
  
do not understand, do not mislead people .   
tomcat can configure virtual hosts, domain names through different access to different app, sharing port 80 .   
configuration Baidu, a lot .  
First of all I want to say is our team 's understanding different domain I understand

www.abc.com
www.bcd.com
constitutes a different domain ,
And I want you to understand that
www.abc.com/A
www.abc.com/B
even different domain names , right ? This to me is not a domain different , but different URL address .
Second, the app can tell me about what ? Not to mention mobile applications .
Third , window down I have not tried , linux you and I expect to be able to bind to port 80 tomcat me know ( not through other agents ) , the problem I did not engage in a long time to complete , and finally through apache proxy .
Fourth, if you can get
www.abc.com
www.bcd.com
This two domain names point to a tomcat, and share the different projects , I hope to be able to tell me , I would love to learn about. Because in my shallow understanding inside, is currently the only DNS resolves to port 80 . That is my understanding of the current is, if two domain name resolution resolves to tomcat should be only one , and not according to the different abc and bcd respond differently .
------ For reference only -------------------------------------- -

    
Great God does not seem to be right tomcat deploy three different projects and different items each correspond to a different domain name yourself          
  
       
    
do not understand, do not mislead people .     
tomcat can configure virtual hosts, domain names through different access to different app, sharing port 80 .     
configuration Baidu, a lot .          
First of all I want to say is our team 's understanding different domain   I understand
  
www.abc.com   
www.bcd.com   
constitutes a different domain ,   
And I want you to understand that   
www.abc.com/A   
www.abc.com/B   
even different domain names , right ? This to me is not a domain different , but different URL address .   
Second, the app can tell me about what ? Not to mention mobile applications .   
Third , window down I have not tried , linux you and I expect to be able to bind to port 80 tomcat me know ( not through other agents ) , the problem I did not engage in a long time to complete , and finally through apache proxy .   
Fourth, if you can get   
www.abc.com   
www.bcd.com   
This two domain names point to a tomcat, and share the different projects , I hope to be able to tell me , I would love to learn about. Because in my shallow understanding inside, is currently the only DNS resolves to port 80 . That is my understanding of the current is, if two domain name resolution resolves to tomcat should be only one , and not according to the different abc and bcd respond differently .  

Great God , I really tried last year is like this www.abc.com
www.bcd.com different domain name , but can not be configured like this pan- two *. abc.com asterisk mistakes you can Google the
------ For reference only --------------------------------------- < br> have multiple sites on copying multiple host in the server.xml file
------ For reference only ------------ ---------------------------

    
Great God does not seem to be right tomcat deploy three different projects and different items each correspond to a different domain name yourself          
  
       
    
do not understand, do not mislead people .     
tomcat can configure virtual hosts, domain names through different access to different app, sharing port 80 .     
configuration Baidu, a lot .          
First of all I want to say is our team 's understanding different domain   I understand
  
www.abc.com   
www.bcd.com   
constitutes a different domain ,   
And I want you to understand that   
www.abc.com/A   
www.abc.com/B   
even different domain names , right ? This to me is not a domain different , but different URL address .   
Second, the app can tell me about what ? Not to mention mobile applications .   
Third , window down I have not tried , linux you and I expect to be able to bind to port 80 tomcat me know ( not through other agents ) , the problem I did not engage in a long time to complete , and finally through apache proxy .   
Fourth, if you can get   
www.abc.com   
www.bcd.com   
This two domain names point to a tomcat, and share the different projects , I hope to be able to tell me , I would love to learn about. Because in my shallow understanding inside, is currently the only DNS resolves to port 80 . That is my understanding of the current is, if two domain name resolution resolves to tomcat should be only one , and not according to the different abc and bcd respond differently .  

middle pull a step so you do not understand , the domain name resolves to ip, an ip can have multiple domain names, domain names point to these naturally can accept requests
www.abc.com:80 and www.bca.com:80 can also point 1.2.3.4:80

After fully supported vhost configuration tomcat
http://tomcat.apache.org/tomcat-7.0-doc / virtual-hosting-howto.html
------ For reference only -------------------------- -------------

      
Great God does not seem to be right tomcat deploy three different projects and different items each correspond to a different domain name yourself                
    
           
      
do not understand, do not mislead people .       
tomcat can configure virtual hosts, domain names through different access to different app, sharing port 80 .       
configuration Baidu, a lot .                
First of all I want to say is our team 's understanding different domain     I understand
    
www.abc.com     
www.bcd.com     
constitutes a different domain ,     
And I want you to understand that     
www.abc.com/A     
www.abc.com/B     
even different domain names , right ? This to me is not a domain different , but different URL address .     
Second, the app can tell me about what ? Not to mention mobile applications .     
Third , window down I have not tried , linux you and I expect to be able to bind to port 80 tomcat me know ( not through other agents ) , the problem I did not engage in a long time to complete , and finally through apache proxy .     
Fourth, if you can get     
www.abc.com     
www.bcd.com     
This two domain names point to a tomcat, and share the different projects , I hope to be able to tell me , I would love to learn about. Because in my shallow understanding inside, is currently the only DNS resolves to port 80 . That is my understanding of the current is, if two domain name resolution resolves to tomcat should be only one , and not according to the different abc and bcd respond differently .          
  
middle pull a step so you do not understand , the domain name resolves to ip, an ip can have multiple domain names, domain names point to these naturally can accept requests   
www.abc.com:80 and www.bca.com:80 can also point 1.2.3.4:80   
  
After fully supported vhost configuration tomcat   
   http://tomcat.apache.org/tomcat-7.0-doc / virtual-hosting-howto.html  

      
      
Great God does not seem to be right tomcat deploy three different projects and different items each correspond to a different domain name yourself                
    
           
      
do not understand, do not mislead people .       
tomcat can configure virtual hosts, domain names through different access to different app, sharing port 80 .       
configuration Baidu, a lot .                
First of all I want to say is our team 's understanding different domain     I understand
    
www.abc.com     
www.bcd.com     
constitutes a different domain ,     
And I want you to understand that     
www.abc.com/A     
www.abc.com/B     
even different domain names , right ? This to me is not a domain different , but different URL address .     
Second, the app can tell me about what ? Not to mention mobile applications .     
Third , window down I have not tried , linux you and I expect to be able to bind to port 80 tomcat me know ( not through other agents ) , the problem I did not engage in a long time to complete , and finally through apache proxy .     
Fourth, if you can get     
www.abc.com     
www.bcd.com     
This two domain names point to a tomcat, and share the different projects , I hope to be able to tell me , I would love to learn about. Because in my shallow understanding inside, is currently the only DNS resolves to port 80 . That is my understanding of the current is, if two domain name resolution resolves to tomcat should be only one , and not according to the different abc and bcd respond differently .          
  
Great God , I really tried last year is like this www.abc.com   
www.bcd.com different domain name , but can not be configured like this pan- two *. abc.com asterisk mistakes you can Google the  
an IP address can consist of multiple domain names I certainly know
So I never said an IP address can not resolve multiple domain names.
I'm talking about :
I know that right now is that if two domain name resolution , resolves to tomcat should be only one , and not according to the different abc and bcd respond differently .
but
www.abc.com point tomcat1 engineering A
www.bcd.com point tomcat1 engineering B
can it ? If OK , please tell me .
www.abc.com/A point tomcat1 engineering A
www.bcd.com/B point tomcat1 engineering B
This can be
www.abc.com point tomcat1 engineering A
www.bcd.com point tomcat2 engineering B
This is possible, but definitely need to configure tomcat different port it. In this case needs is

domain forwarding it.
------ For reference only -------------------------------------- -


------ For reference only ---------------------------------- -----


This can be a big God
I go online to give you specific search under


------ For reference only ---------------------------------- -----

you're right , I checked , indeed .
I had not allocated like this, really do not know .
studied .
Thank you .
------ For reference only -------------------------------------- -

you're right , I checked , indeed .   
I had not allocated like this, really do not know .   
studied .   
Thank you .  

You are too kind with you after that three medals you have to exhibitions
------ For reference only ---------------------------------------

you're right. , I checked , indeed .   
I had not allocated like this, really do not know .   
studied .   
Thank you .  

Thank you for your positive reply , there is no time , while a closer look, studied under
------ For reference only ----------------- ----------------------

  
  
  
   If you deploy three tomcat , then only occupy a different port. This problem can be resolved using nginx to  

or apache
------ For reference only -------------------------------- -------


unpackWARs = "true" autoDeploy = "true"
xmlValidation = "false" xmlNamespaceAware = "false">

unpackWARs = "true" autoDeploy = "true"
xmlValidation = "false" xmlNamespaceAware = "false">


I play on this unit www.mytestceshi2.com, how bad ? ! ?







------ For reference only ---------------------------------- -----
multiple host the problem would lead发了这么多reply.
a tomcat configure multiple host name ; performance is quite poor . Although he save a lot of things .
recommend using apache mapped to a different port ; using multiple tomcat.
------ For reference only -------------------------------------- -
Results posted to the sub , thank you for your participation
------ For reference only ------------------------ ---------------

  
unpackWARs = "true" autoDeploy = "true"   
xmlValidation = "false" xmlNamespaceAware = "false">   
  
unpackWARs = "true" autoDeploy = "true"   
xmlValidation = "false" xmlNamespaceAware = "false">   
  
  
I play on this unit www.mytestceshi2.com, how bad ? ! ?   
  
  
  
  
  
  
 


amount you changed the host file it

没有评论:

发表评论