tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Micael Padraig Og mac Grene <caraun...@harbornet.com>
Subject Re: Is this a stupid question or something? Why no nibbles?
Date Sun, 27 Jan 2002 22:55:56 GMT
Thank you, August.  A couple of these examples (pictures) in the 
documentation, for me, would have been worth a thousand words.  Had my 
stuff going minutes after you sent this.  I really appreciate it.  If I can 
be of assistance anytime, please let me know.  Micael

At 03:02 PM 1/27/02 -0800, you wrote:
>Are you using tomcat standalone or with Apache? With Apache, you can
>configure them as separate virtual hosts for each of the URLs. As long
>as there is one entry for the domain name in the hosts file it will
>work:
>
>/etc/hosts :
>
>12.34.56.78    mycompany.com
>
>
>virtual host setup in apache httpd.conf:
>
><VirtualHost 12.34.56.78>
>     ServerName dev1.mycompany.com
>     DocumentRoot "/home/dev1/www"
>
>     # deplay webapps for this site
>     WebAppDeploy     ROOT      conn  /
>     # will set the default webapp dir for this virtual host
>     # to: /home/dev1/www/ROOT/
>
></VirtualHost>
>
>
>virtual host setup in server.xml:
>
>       <!-- dev1.mycompany.com virtual host -->
>       <Host name="dev1.mycompany.com" debug="0"
>appBase="/home/dev1/www" unpackWARs="true">
>
>         <!-- Normally, users must authenticate themselves to each web
>app
>              individually.  Uncomment the following entry if you would
>like
>              a user to be authenticated the first time they encounter a
>              resource protected by a security constraint, and then have
>that
>              user identity maintained across *all* web applications
>contained
>              in this virtual host. -->
>         <!--
>         <Valve
>className="org.apache.catalina.authenticator.SingleSignOn"
>                    debug="0"/>
>         -->
>
>         <!-- Access log processes all requests for this virtual host.
>By
>              default, log files are created in the "logs" directory
>relative to
>              $CATALINA_HOME.  If you wish, you can specify a different
>              directory with the "directory" attribute.  Specify either
>a relative
>              (to $CATALINA_HOME) or absolute path to the desired
>directory.
>         -->
>         <Valve className="org.apache.catalina.valves.AccessLogValve"
>                  directory="logs"  prefix="codemagi_com_access_log."
>suffix=".txt"
>                  pattern="common"/>
>
>         <!-- Logger shared by all Contexts related to this virtual
>host.  By
>              default (when using FileLogger), log files are created in
>the "logs"
>              directory relative to $CATALINA_HOME.  If you wish, you
>can specify
>              a different directory with the "directory" attribute.
>Specify either a
>              relative (to $CATALINA_HOME) or absolute path to the
>desired
>              directory.-->
>         <Logger className="org.apache.catalina.logger.FileLogger"
>                  directory="logs"  prefix="dev1_log." suffix=".txt"
>                 timestamp="true"/>
>
>         <!-- Define properties for each web application.  This is only
>needed
>              if you want to set non-default properties, or have web
>application
>              document roots in places other than the virtual host's
>appBase
>              directory.  -->
>
>         <!-- Tomcat Root Context -->
>         <Context path="" docBase="ROOT" debug="0"/>
>
>         <!-- Tomcat Manager Context -->
>         <Context path="/manager"
>docBase="/usr/local/catalina/webapps/manager" debug="0"
>privileged="true" />
>
>       </Host>
>
>
>
>
>--- Micael Padraig Og mac Grene <caraunltd@harbornet.com> wrote:
> >
> >
> > At 04:16 AM 1/26/02 -0800, you wrote:
> >
> > >--- Micael Padraig Og mac Grene
> > ><caraunltd@harbornet.com> wrote:
> > > > At 01:08 AM 1/25/02 -0800, you wrote:
> > > > >FIRST
> > > > >
> > > > >If I want several development urls, e.g.
> > > > >
> > > > >         app1.mycompany.com
> > > > >         app2.mycompany.com
> > > > >         app3.mycompany.com
> > > > >
> > > > >to be accessed through one registered url, e.g.
> > > > >
> > > > >         www.mycompany.com
> > > > >
> > > > >can I do this with server.xml alone or do I have to
> > > > also configrue the dns
> > > > >server to cooperate?
> > >
> > >Are you accessing these dev urls from outside your
> > >local LAN or inside? Do you have an internal DNS
> > >server? You are going to have to configure DNS for
> > >machines outside of your LAN to know what IP address
> > >app1.mycompany.com should resolve to. If you are only
> > >concerned w/ 1 or 2 internal machines you could set up
> > >a host file on those machines that maps the different
> > >name to the same IP address. Of course, if these are
> > >to be different contexts you will have to edit
> > >server.xml . I have yet to upgrade to 4.0 so I can't
> > >answer in detail about that.
> > >
> > ><<SNIP>>
> > >
> > >=====
> > >rascharles@yahoo.com
> > >Hacking is a "Good Thing!"
> >
> > -- Thanks Charles,
> >
> > Access is from outside.  I will have an internal dns server in about
> > a
> > month, but right now it is being served by the company that is giving
> > me
> > bandwidth and an ip address.  Any further help you can give me would
> > be
> > greatly appreciated.
> >
> > -- micael
> >
> >
> >
> > --
> > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >
>
>
>__________________________________________________
>Do You Yahoo!?
>Great stuff seeking new owners in Yahoo! Auctions!
>http://auctions.yahoo.com
>
>--
>To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
>Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message