简体   繁体   中英

Tomcat virtual Host

I have an application hosted on a server. I want all small customers to share a virtual host and I want setup a dedicated virtual host for each big customer. the applications are totally same, can I have the virtual point to the same codebase directory?

I am using Tomcat 7 as application server, please advise.

Thanks

If it always is the same app they are using, you can try this. Otherwise change the appBase, ie for a regular customer (server.xml):

<Host name="smallCustomers.com" appBase="webapps" ...>
  ...
</Host>

<Host name="regularCustomer1.com" appBase="webapps" ...>
  ...
</Host>

<Host name="regularCustomer2.com" appBase="webapps" ...>
  ...
</Host>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM