LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-18-2005, 04:39 PM   #1
bstuart
LQ Newbie
 
Registered: Jun 2005
Posts: 5

Rep: Reputation: 0
Virtual Hosting


I am working on setting up a new web server.
Currently on the old one, I host two applications, one listens on port 80 with TomCat 5.0 and the other listens on 8080 with Tomcat 5.5.

Currently I use: www . ourserver . com / app1 and www . ourserver . com / app2.

I want to be able to call app1 . ourserver . com and app2 . ourserver . com and have the proper application served. Similarly, I want to be able to ask for www . app1 . com to serve the application in the context app1 and when a request comes in for www . app2 . com, the application in context app2 is served. Thus the web root is the root of the context... so www . app1 . com / index . jsp points at the file: www . ourserver . com / app1 / index . jsp

Currently on the new server running SUSE 9.1 I have Tomcat 5.5 ready for the applications. Can anyone point me to a good place to start, do I need more software? Apache? The JK connector?

The more info the better becasue I am a newbie...
 
Old 06-19-2005, 11:26 AM   #2
RandomLinuxNewb
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 101

Rep: Reputation: 15
You need to setup a virtual host in apache, this is from my web config.
Code:
<VirtualHost *>
        ServerName      pics.w00ttech.com
        DocumentRoot    /www/w00ttech/webroot/pics
</VirtualHost>

<VirtualHost *>
        ServerName      mail.w00ttech.com
        DocumentRoot    /www/w00ttech/squirrelmail
</VirtualHost>
If you want to be able to access the apps from www.app1.com or www.app2.com you are going to have to either own those domains or setup a dns server on your localnetwork that will resolve the address to the correct IP.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
virtual hosting setenv02 Linux - General 6 05-05-2005 02:35 AM
Virtual hosting... id10t Linux - Networking 4 02-02-2004 05:43 PM
Virtual Hosting - what does it actually do? gevers1 Linux - General 3 02-01-2004 09:28 AM
Virtual Hosting joseph Linux - General 3 08-20-2003 04:16 AM
Virtual Hosting marson Linux - General 2 12-28-2000 08:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration