RE: Is this a stupid question or something? Why no nibbles?
Hi, -Original Message- From: August Detlefsen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 8:09 PM To: Tomcat Users List Subject: Re: Is this a stupid question or something? Why no nibbles? This is actually the second time I posted this exact same config to the list. If someone tells me how to update the docs, I will put it there too. I'm not sure but assuming you know what file you want to update you could post new bug at bugzilla (http://nagoya.apache.org/bugzilla) with attached patch. -August Anton -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Is this a stupid question or something? Why no nibbles?
This is actually the second time I posted this exact same config to the list. If someone tells me how to update the docs, I will put it there too. -August --- Micael Padraig Og mac Grene [EMAIL PROTECTED] wrote: 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.78mycompany.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 [EMAIL PROTECTED] wrote: At 04:16 AM 1/26/02 -0800, you wrote: --- Micael Padraig Og mac Grene [EMAIL PROTECTED] 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 = [EMAIL PROTECTED] 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
Re: Is this a stupid question or something? Why no nibbles?
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.78mycompany.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 [EMAIL PROTECTED] wrote: At 04:16 AM 1/26/02 -0800, you wrote: --- Micael Padraig Og mac Grene [EMAIL PROTECTED] 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 = [EMAIL PROTECTED] 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:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Is this a stupid question or something? Why no nibbles?
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.78mycompany.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 [EMAIL PROTECTED] wrote: At 04:16 AM 1/26/02 -0800, you wrote: --- Micael Padraig Og mac Grene [EMAIL PROTECTED] 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 = [EMAIL PROTECTED] 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:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You
Is this a stupid question or something? Why no nibbles?
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? SECOND If the server.xml alone, do I do it the same way we did with Tomcat 3.2? If not, what changes are now in order? Thanks for any assistance. I think that if there were a simple sample server.xml to look at, all these things would be immediately resolved. -- micael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Is this a stupid question or something? Why no nibbles?
--- Micael Padraig Og mac Grene [EMAIL PROTECTED] 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 = [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Is this a stupid question or something? Why no nibbles?
At 04:16 AM 1/26/02 -0800, you wrote: --- Micael Padraig Og mac Grene [EMAIL PROTECTED] 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 = [EMAIL PROTECTED] 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:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]