LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-23-2009, 10:14 PM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
Tomcat VirtualHost Setup Issue..


Hello Al,

I have recently installed Tomcat on my new CentOS 5.2.
Code:
[root@on3 ~]# echo $JAVA_HOME
/opt/jdk1.6.0_17
[root@on3 ~]# echo $CATALINA_HOME
/opt/apache-tomcat-6.0.18
[root@travelodgemon3 ~]#
Now I am in verse of setting up VirtualHost on Tomcat. I followed this link:http://www.ex-parrot.com/pete/tomcat-vhost.html almost every step.
I have server.xml entry for new VirtualHost as:
Code:
 <Engine name="Catalina" defaultHost="start.com" />
       <Host name="start.com" debug="0" appBase="webapps/start.com"
      unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">

         <Logger className="org.apache.catalina.logger.FileLogger"
       directory="logs"  prefix="$host\_log." suffix=".txt" timestamp="true"/>

    <Alias>start.com</Alias>
     </Host>
Earlier there was only on eentry:
Code:
<Host name="localhost"  appBase="webapps/localhost"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
May I know what I need to type on Web URl to see if its configured properly.
 
Old 11-24-2009, 02:20 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

If tomcat is configured to listen on port the default port 8080, then the URL should be: http://start.com:8080

Regards
 
Old 11-24-2009, 02:23 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
Yep...I had checked that and its working fine with the URL.

I have start.com webpage( thru VirtualHost In Tomcat) running now. I can easily browse through http://start.com:8080/. All I need is creating http://en.start.com:8080 which opens up different application.

Can alias come up into this picture?
How can I achieve the same?

Last edited by your_shadow03; 11-24-2009 at 02:33 AM.
 
Old 11-24-2009, 02:46 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Alias is not going to work, as all it does is to give server a different name (thus using the same webapp)
You have to create another vhost en.start.com using a different context for the webapp that runs on that vhost.
See this for details

Regards
 
  


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
Fedora 11 Virtualhost Setup jpienaar101 Linux - Newbie 1 06-16-2009 05:43 AM
ModProxy and VirtualHost Combination Issue - Apache 2 ddenton Linux - Server 2 04-02-2009 05:20 PM
Virtualhost setup on apache 2 notmatt Debian 2 10-28-2004 01:05 PM
How to setup the virtualhost in home? treotan Linux - Networking 9 08-05-2004 09:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:03 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