IntelliJ Java IDE
The moose likes Tomcat and the fly likes can we host different web sites on the same server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "can we host different web sites on the same server" Watch "can we host different web sites on the same server" New topic
Author

can we host different web sites on the same server

mihir maniar
Ranch Hand

Joined: Sep 09, 2003
Posts: 88
can we have multiple domains on the same server .if yes then how
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
on apache you can configure Virtual Hosts which are then referenced.
<VirtualHost www.test1.com>
ServerName test1
DocumentRoot /var/docroot/test1
DirectoryIndex default.html index.html index.html index.jsp
</VirtualHost>
for each domain create one entry.
 
 
subject: can we host different web sites on the same server
 
Threads others viewed
send an js array to servlet
Struts application to run with IIS
Communication between servlets of two different applications
How to access other web application running on server.
RequestDispatcher
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture