Re: Tomcat Virtual Host to prevent Improper-Input-Handling attack

2021-09-13 Thread Pradeep
data.com/portal/ticket/list?offset=10&host_header=host Currently it returns 302 basically redirecting invalid host which is not right. I found this link , solution recommended by Tomcat team "Andre". https://stackoverflow.com/questions/44054591/tomcat-virtual-host-to-prevent-i

Re: Tomcat Virtual Host to prevent Improper-Input-Handling attack

2021-09-13 Thread Christopher Schultz
Pradeep, On 9/13/21 09:35, Pradeep wrote: I am using Tomcat 7.0.57, I can't change the Tomcat version now. Running my previous "forge" file (with GET http://www.microsoft.com/, the the forged Host header) against Tomcat 7.0.57: $ nc localhost 8080 < forge HTTP/1.1 200 OK Server: Apache-Coyo

Re: Tomcat Virtual Host to prevent Improper-Input-Handling attack

2021-09-13 Thread Christopher Schultz
Pradeep, On 9/13/21 09:35, Pradeep wrote: Hi Chris, I am using Tomcat 7.0.57, I can't change the Tomcat version now. I tried adding Virtual Host with RemotrHostValve to allow list of hosts but still no luck. This is because you are trying to block the client by their identity

Re: Tomcat Virtual Host to prevent Improper-Input-Handling attack

2021-09-13 Thread Pradeep
Hi Chris, I am using Tomcat 7.0.57, I can't change the Tomcat version now. I tried adding Virtual Host with RemotrHostValve to allow list of hosts but still no luck. Regards, Pradeep On Mon, 13 Sep 2021, 2:28 pm Christopher Schultz, < ch...@christopherschultz.net> wrote: > Pra

Re: Tomcat Virtual Host to prevent Improper-Input-Handling attack

2021-09-13 Thread Christopher Schultz
Pradeep, On 9/10/21 17:38, Pradeep wrote: My application is HTTPS not HTTP and now one of the application security platforms WhitHatSec raised this vulnerability issue. I tried to reproduce your "attack" on Tomcat 8.5.59, like this: $ cat forge GET www.microsoft.com/ HTTP/1.1 Host: www.micro

Re: Tomcat Virtual Host to prevent Improper-Input-Handling attack

2021-09-10 Thread Pradeep
Hi Chris, My application is HTTPS not HTTP and now one of the application security platforms WhitHatSec raised this vulnerability issue. I tried the above configuration mentioned but no luck but this configuration advised in Apache website http://tomcat.apache.org/tomcat-9.0-doc/config/host.html#

Re: Tomcat Virtual Host to prevent Improper-Input-Handling attack

2021-09-10 Thread Christopher Schultz
Pradeep, On 9/10/21 06:19, Pradeep wrote: Hi Team, I need your help to fix HTTP Host header attacks. I'm currently in the process of trying to fix a site vulnerability, basically it is one type of the "Improper Input Handling" attack. Let's say my website is www.mywebsite.com and there is hack

Tomcat Virtual Host to prevent Improper-Input-Handling attack

2021-09-10 Thread Pradeep
Hi Team, I need your help to fix HTTP Host header attacks. I'm currently in the process of trying to fix a site vulnerability, basically it is one type of the "Improper Input Handling" attack. Let's say my website is www.mywebsite.com and there is hacker's website www.hacker.com Whenever there is

Re: Tomcat 8.5.5 with Oracle Apex 8.5.5 and Oracle ORDS 3.0.5.124.10.54 - Error While Connecting to Virtual Host - Message " null’s server IP address could not be found."

2019-08-14 Thread Pierre Chiu
; > http://ptktl-apex:7003/ords_NERP/f?p=4550:1:11994796538363: > > and > > http://drptl-apex:7003/ords_NERP/f?p=4550:1:11994796538363: > > > Virtual Host "apex_test" has been configured into F5 , in order to > LoadBalance the 2 servers : ptktl-apex and drptl-apex on

Tomcat 8.5.5 with Oracle Apex 8.5.5 and Oracle ORDS 3.0.5.124.10.54 - Error While Connecting to Virtual Host - Message " null’s server IP address could not be found."

2019-08-14 Thread הרי טייב - harry taieb
=4550:1:11994796538363: and http://drptl-apex:7003/ords_NERP/f?p=4550:1:11994796538363::::: Virtual Host "apex_test" has been configured into F5 , in order to LoadBalance the 2 servers : ptktl-apex and drptl-apex on Port 7003 while connecting to the following Url : http:/

Re: Question about Tomcat Virtual Host to prevent Improper-Input-Handling attack

2017-05-23 Thread Christopher Schultz
ry="logs" prefix="localhost_access_log." suffix=".txt" >> pattern="%h %l %u %t "%r" %s %b" /> >> >> >> _ ___ >> > >> > With the above configuration, this is what happens : > > 1) Any request coming in to your server, which

RE: Question about Tomcat Virtual Host to prevent Improper-Input-Handling attack

2017-05-23 Thread Cai, Charles [COMRES/RTC/RTC]
Charles Cai | T +1 440 329 4888 -Original Message- From: André Warnier (tomcat) [mailto:a...@ice-sa.com] Sent: Monday, May 22, 2017 3:19 PM To: users@tomcat.apache.org Subject: Re: Question about Tomcat Virtual Host to prevent Improper-Input-Handling attack On 22.05.2017 20:35, Cai

Re: Question about Tomcat Virtual Host to prevent Improper-Input-Handling attack

2017-05-22 Thread tomcat
ome/resources My website is running on Tomcat 7, I tried some solution with set up the virtual host by point the unknown host to a defaultlocalhost which supposed to do nothing. but it still send the redirect for some reason. Here attac

Question about Tomcat Virtual Host to prevent Improper-Input-Handling attack

2017-05-22 Thread Cai, Charles [COMRES/RTC/RTC]
tried some solution with set up the virtual host by point the unknown host to a defaultlocalhost which supposed to do nothing. but it still send the redirect for some reason. Here attac

Re: HTML 508 error with container authentication and virtual host

2015-07-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 7/8/15 3:12 PM, David Hoffer wrote: > Here is information on how we have Apache configured. Apache is > the virtual host and it redirects to the (war) app deployed in > Tomcat. Note it has the app name in the ProxyPass/ProxyPa

Re: HTML 508 error with container authentication and virtual host

2015-07-09 Thread Konstantin Kolinko
2015-07-07 19:05 GMT+03:00 David Hoffer : > My bad. I recalled the error wrong...it's 408. > > HTTP Status 408 - The time allowed for the login process has been exceeded. > If you wish to continue you must either click back twice and re-click the > link you requested or close and re-open your brow

Re: HTML 508 error with container authentication and virtual host

2015-07-08 Thread David Hoffer
Here is information on how we have Apache configured. Apache is the virtual host and it redirects to the (war) app deployed in Tomcat. Note it has the app name in the ProxyPass/ProxyPassReverse URL. Regarding your question on how we deploy the app, I use Tomcat's Manager app to upload

Re: HTML 508 error with container authentication and virtual host

2015-07-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 7/7/15 11:14 AM, David Hoffer wrote: > Here is the relevant parts of the web.xml. I didn't do the Apache > configuration so I'll have to get more details there but I was told > that is no different than how we configure virtual hosts for

Re: HTML 508 error with container authentication and virtual host

2015-07-07 Thread David Hoffer
homas wrote: > On 07/07/2015 15:13, David Hoffer wrote: > > I've added FORM container authentication with Tomcat and everything works > > fine as long as users use the full URL to the app (URL in Tomcat's > manager > > app). > > > > However users want

Re: HTML 508 error with container authentication and virtual host

2015-07-07 Thread Mark Thomas
On 07/07/2015 15:13, David Hoffer wrote: > I've added FORM container authentication with Tomcat and everything works > fine as long as users use the full URL to the app (URL in Tomcat's manager > app). > > However users want to use a different URL bas

Re: HTML 508 error with container authentication and virtual host

2015-07-07 Thread David Hoffer
>> >> >resourceName="UserDatabase"/> >> >> >> > unpackWARs="true" autoDeploy="true"> >> >> > directory="logs" >>p

Re: HTML 508 error with container authentication and virtual host

2015-07-07 Thread André Warnier
's manager app). However users want to use a different URL based on a virtual host, e.g. myapp.mycompany.com. It brings the users to the app no problem but then when they try to login Tomcat reports a 508 error, how do I solve this? The URL in the browser when this happens is myapp.mycompany

Re: HTML 508 error with container authentication and virtual host

2015-07-07 Thread André Warnier
André Warnier wrote: Hi. David Hoffer wrote: I've added FORM container authentication with Tomcat and everything works fine as long as users use the full URL to the app (URL in Tomcat's manager app). However users want to use a different URL based on a virtual host, e.g. myapp.myc

Re: HTML 508 error with container authentication and virtual host

2015-07-07 Thread David Hoffer
container authentication with Tomcat and everything works >> fine as long as users use the full URL to the app (URL in Tomcat's manager >> app). >> >> However users want to use a different URL based on a virtual host, e.g. >> myapp.mycompany.com. It brings the use

Re: HTML 508 error with container authentication and virtual host

2015-07-07 Thread André Warnier
Hi. David Hoffer wrote: I've added FORM container authentication with Tomcat and everything works fine as long as users use the full URL to the app (URL in Tomcat's manager app). However users want to use a different URL based on a virtual host, e.g. myapp.mycompany.com. It brings

HTML 508 error with container authentication and virtual host

2015-07-07 Thread David Hoffer
I've added FORM container authentication with Tomcat and everything works fine as long as users use the full URL to the app (URL in Tomcat's manager app). However users want to use a different URL based on a virtual host, e.g. myapp.mycompany.com. It brings the users to the app no p

Re: Session being dropped in Virtual Host in 8.0.9

2015-02-04 Thread Hassan Schroeder
Late to this party :-) On Wed, Feb 4, 2015 at 2:03 AM, Rory Kelly wrote: > Rack is a bundle of fun, since this application is a Jruby application, > which is being converted into a Java application to run on Tomcat. That's a > whole other can of worms :) I've only run Rails apps out of Tomcat (

RE: Session being dropped in Virtual Host in 8.0.9

2015-02-04 Thread Rory Kelly
ent: 03 February 2015 20:40 To: Tomcat Users List Subject: Re: Session being dropped in Virtual Host in 8.0.9 -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rory, On 2/3/15 6:04 AM, Rory Kelly wrote: > Sorry for the late reply, I wound up working from home yesterday, and > access to the serve

Re: Session being dropped in Virtual Host in 8.0.9

2015-02-03 Thread Christopher Schultz
03 Feb 2015 11:07:06 -; HttpOnly > Transfer-Encoding: chunked X-XSS-Protection: 1; mode=block > x-content-type-options: nosniff x-frame-options: SAMEORIGIN I don't see a single session id in any of those requests, other than the "ib" token you said is generated by &quo

RE: Session being dropped in Virtual Host in 8.0.9

2015-02-03 Thread Rory Kelly
th a >different cookie name), or by something else? "ib" is getting set by Rack. I've tried the same WAR on my Windows machine, and it works fine. The only difference between the two instances is the environment (Single Host Tomcat 8.0.9 on Windows from Apache's website

Re: Session being dropped in Virtual Host in 8.0.9

2015-02-03 Thread Konstantin Kolinko
2015-02-03 14:04 GMT+03:00 Rory Kelly : > Hi Chris, > > Sorry for the late reply, I wound up working from home yesterday, and access > to the server was less than ideal > I'm just gonna dump the Headers from the login get, through to when it dumps > me back out at the login. > > #response > HTTP/1

RE: Session being dropped in Virtual Host in 8.0.9

2015-02-03 Thread Rory Kelly
t: Re: Session being dropped in Virtual Host in 8.0.9 -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rory, On 1/30/15 11:01 AM, Rory Kelly wrote: > I apologise in advance if the formatting is absolutely terrible. Actually, it was totally readable ;) >> Are you using cookies for se

Re: Session being dropped in Virtual Host in 8.0.9

2015-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rory, On 1/30/15 11:01 AM, Rory Kelly wrote: > I apologise in advance if the formatting is absolutely terrible. Actually, it was totally readable ;) >> Are you using cookies for session-tracking? > >> Can you watch the HTTP conversation to see wh

RE: Session being dropped in Virtual Host in 8.0.9

2015-01-30 Thread Rory Kelly
Hi Chris, I apologise in advance if the formatting is absolutely terrible. >Are you using cookies for session-tracking? >Can you watch the HTTP conversation to see what's being sent back and forth >during that workflow? LiveHttpHeaders is great for Firefox, and these days >Chrome, Firefox, and I

Re: Session being dropped in Virtual Host in 8.0.9

2015-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rory, On 1/30/15 6:08 AM, Rory Kelly wrote: > I’m having a lot of trouble with maintaining a session in a Virtual > Host environment on 8.0.9. I installed Tomcat through apt-get on an > Ubuntu 14.04 server > > My application is

Session being dropped in Virtual Host in 8.0.9

2015-01-30 Thread Rory Kelly
Hi, I’m having a lot of trouble with maintaining a session in a Virtual Host environment on 8.0.9. I installed Tomcat through apt-get on an Ubuntu 14.04 server My application is a JRuby padrino bundled with Warbler, with 2 steps for logging in, a login page and a challenge page. The session

Re: Tomcat virtual host shows blank page

2014-07-24 Thread Hassan Schroeder
On Thu, Jul 24, 2014 at 6:25 PM, Arya Farzan wrote: > I am using Tomcat by itself. It is pretty much a default installation using > apt-get on Debian. Error #1 - dump that and install a real Tomcat. > I changed the port from 8080 to port 80 Error #2 - don't run Tomcat as root; use jsvc, a prox

Re: Tomcat virtual host shows blank page

2014-07-24 Thread Arya Farzan
Thank you. I changed it to your example and now it's working On Thu, Jul 24, 2014 at 8:35 PM, Igal @ getRailo.org wrote: > I prefer to use Context/docBase instead of Host/appBase > > try this: > > >mysite.com > > > > > > > > On 7/24/2014 6:28 PM, Arya Farzan wrote: > >> I just tried t

Re: Tomcat virtual host shows blank page

2014-07-24 Thread Igal @ getRailo.org
I prefer to use Context/docBase instead of Host/appBase try this: mysite.com On 7/24/2014 6:28 PM, Arya Farzan wrote: I just tried this with IE and it says "The webpage cannot be found" in google chrome source is 100% blank On Thu, Jul 24, 2014 at 8:20 PM, Igal Sapir wrote: C

Re: Tomcat virtual host shows blank page

2014-07-24 Thread Arya Farzan
I just tried this with IE and it says "The webpage cannot be found" in google chrome source is 100% blank On Thu, Jul 24, 2014 at 8:20 PM, Igal Sapir wrote: > Check with view source on the blank page and see if you get anything there > On Jul 24, 2014 6:16 PM, "Jordan Michaels" wrote: > > > H

Re: Tomcat virtual host shows blank page

2014-07-24 Thread Arya Farzan
Hi Jordan I am using Tomcat by itself. It is pretty much a default installation using apt-get on Debian. The only changes I made are: I changed the port from 8080 to port 80 And I changed AUTHBIND=no to AUTHBIND=yes On Thu, Jul 24, 2014 at 8:16 PM, Jordan Michaels wrote: > Hi Arya, > > Are yo

Re: Tomcat virtual host shows blank page

2014-07-24 Thread Igal Sapir
Check with view source on the blank page and see if you get anything there On Jul 24, 2014 6:16 PM, "Jordan Michaels" wrote: > Hi Arya, > > Are you using a web server like Apache in front of Tomcat, or are you > hitting the Tomcat port directly? This will tell us if the problem is > somewhere in

Re: Tomcat virtual host shows blank page

2014-07-24 Thread Jordan Michaels
Hi Arya, Are you using a web server like Apache in front of Tomcat, or are you hitting the Tomcat port directly? This will tell us if the problem is somewhere in your connector setup or not. Any clues in your catalina.out log file? Warm Regards, Jordan Michaels On 07/24/2014 06:03 PM, Arya

Tomcat virtual host shows blank page

2014-07-24 Thread Arya Farzan
Hello I also asked this on Stackoverflow but no one has commented or answered. I've been trying to configure tomcat for multiple domains and everything I have tried was unsuccessful. I added this to /etc/tomcat7/server.xml mysite.com and I created the folder /var/lib/tomcat7/webapps/mysite

Re: tomcat - How to forward request to some webapp while using port 80 without virtual host, without apache

2013-12-29 Thread André Warnier
Peter wrote: I am happy that you guys sent reply to me, but anyone here can create configuration file for me for example which I had mentioned in beginning of post, then I can understand better, its my weakness but true. Peter, you should decide what you want, and whether the way in which to d

Re: tomcat - How to forward request to some webapp while using port 80 without virtual host, without apache

2013-12-28 Thread Mark Eggers
On 12/28/2013 11:00 PM, Peter wrote: I am happy that you guys sent reply to me, but anyone here can create configuration file for me for example which I had mentioned in beginning of post, then I can understand better, its my weakness but true. -Peter On Sat, Dec 28, 2013 at 10:25 PM, André War

Re: tomcat - How to forward request to some webapp while using port 80 without virtual host, without apache

2013-12-28 Thread Peter
I am happy that you guys sent reply to me, but anyone here can create configuration file for me for example which I had mentioned in beginning of post, then I can understand better, its my weakness but true. -Peter On Sat, Dec 28, 2013 at 10:25 PM, André Warnier wrote: > Peter wrote: > ... > >

Re: tomcat - How to forward request to some webapp while using port 80 without virtual host, without apache

2013-12-28 Thread André Warnier
Peter wrote: ... I am confused about installation part please help me, installation guide says its WEB-INF directory which WEB-INF ?? and I didn't find any lib directory look at the following detail, I am newbie I have lot of need of you people's help please do the needful. Maybe you could s

Re: tomcat - How to forward request to some webapp while using port 80 without virtual host, without apache

2013-12-28 Thread André Warnier
lient1 <http://client1.host.com/client1>* same way if I enter *http://client2.host.com <http://client2.host.com> *it should forward to to *http://client2.host.com/client2 <http://client2.host.com/client2>* How this can be achieved *I am not interested to use virtual host in tom

Re: tomcat - How to forward request to some webapp while using port 80 without virtual host, without apache

2013-12-28 Thread Peter
On Sat, Dec 28, 2013 at 6:48 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > From: Peter [mailto:nex@gmail.com] > Subject: tomcat - How to forward request to some webapp while using port 80 without virtual host, without apache > if I enter *http://client1

RE: tomcat - How to forward request to some webapp while using port 80 without virtual host, without apache

2013-12-28 Thread Caldarale, Charles R
> From: Peter [mailto:nex@gmail.com] > Subject: tomcat - How to forward request to some webapp while using port 80 > without virtual host, without apache > if I enter *http://client1.host.com <http://client1.host.com>* on browser, > then tomcat should forward it to we

tomcat - How to forward request to some webapp while using port 80 without virtual host, without apache

2013-12-28 Thread Peter
//client1.host.com/client1>* same way if I enter *http://client2.host.com <http://client2.host.com> *it should forward to to *http://client2.host.com/client2 <http://client2.host.com/client2>* How this can be achieved *I am not interested to use virtual host in tomcat, as well as

Re: Tomcat Java Settings for each webapps, and virtual host strange issue.

2013-12-27 Thread David kerber
On 12/27/2013 4:27 AM, Peter wrote: there is no log.txt but I can attach catalina logs Please look into the attachment Attachments don't come through on this list; copy the contents of the file into your message. All my webapps are working fine with following java downloaded from Oracle

Re: Tomcat Java Settings for each webapps, and virtual host strange issue.

2013-12-27 Thread André Warnier
Peter wrote: On Fri, Dec 27, 2013 at 1:31 PM, Mark Eggers wrote: On 12/26/2013 11:49 PM, Peter wrote: Guys see here is that error message , I am attaching log file also please help OS - Centos 6.5 64 bit HTTP Status 500 - Error instantiating servlet class gov.noaa.pfel.erddap.Erddap --

Re: Tomcat Java Settings for each webapps, and virtual host strange issue.

2013-12-27 Thread Peter
there is no log.txt but I can attach catalina logs Please look into the attachment All my webapps are working fine with following java downloaded from Oracle website except ERDDAP *# ls *.gz -1jdk-7u45-linux-x64.tar.gzjre-7u45-linux-x64.tar.gz* *# Folders* jdk1.7.0_45 jre1.7.0_45 Please help

Re: Tomcat Java Settings for each webapps, and virtual host strange issue.

2013-12-27 Thread André Warnier
Peter wrote: Guys see here is that error message , I am attaching log file also please help And did you see that : java.lang.RuntimeException: Ask the ERDDAP administrator to look at the detailed error message in [bigParentDirectory]/logs/log.txt . Did you ask him ? -

Re: Tomcat Java Settings for each webapps, and virtual host strange issue.

2013-12-27 Thread Peter
On Fri, Dec 27, 2013 at 1:31 PM, Mark Eggers wrote: > On 12/26/2013 11:49 PM, Peter wrote: > >> Guys see here is that error message , I am attaching log file also please >> help >> >> OS - Centos 6.5 64 bit >> >> HTTP Status 500 - Error instantiating servlet class >> gov.noaa.pfel.erddap.Erddap >

Re: Tomcat Java Settings for each webapps, and virtual host strange issue.

2013-12-27 Thread Mark Eggers
On 12/26/2013 11:49 PM, Peter wrote: Guys see here is that error message , I am attaching log file also please help OS - Centos 6.5 64 bit HTTP Status 500 - Error instantiating servlet class gov.noaa.pfel.erddap.Erddap -- *type* Exception report *message* *Error in

Re: Tomcat Java Settings for each webapps, and virtual host strange issue.

2013-12-26 Thread Peter
Guys see here is that error message , I am attaching log file also please help OS - Centos 6.5 64 bit HTTP Status 500 - Error instantiating servlet class gov.noaa.pfel.erddap.Erddap -- *type* Exception report *message* *Error instantiating servlet class gov.noaa.pfel

Re: Tomcat Java Settings for each webapps, and virtual host strange issue.

2013-12-26 Thread André Warnier
Peter wrote: Thanks *Mark,* Martin Gainty, André Warnier for you time As some of you suggested I need to have different tomcat for different java version The very first question which you should maybe ask yourself (or the developers of the webapps), is *why* these webapps require differe

Re: Tomcat Java Settings for each webapps, and virtual host strange issue.

2013-12-26 Thread David kerber
On 12/26/2013 2:17 PM, Peter wrote: Thanks *Mark,* Martin Gainty, André Warnier for you time As some of you suggested I need to have different tomcat for different java version Do you mean if I have 2 webapps, which works on 2 difference java versions then, do I have to create 2 tomcat fol

Re: Tomcat Java Settings for each webapps, and virtual host strange issue.

2013-12-26 Thread Peter
Thanks *Mark,* Martin Gainty, André Warnier for you time As some of you suggested I need to have different tomcat for different java version Do you mean if I have 2 webapps, which works on 2 difference java versions then, do I have to create 2 tomcat folders ? like this /tomcat7_copy1 --->w

Re: Tomcat Java Settings for each webapps, and virtual host strange issue.

2013-12-26 Thread André Warnier
Peter wrote: Hi all, I am having strange issues with tomcat 7 as well as tomcat 8, following is details of that issue, please someone help me to configure java for each webapps Thanks for all the detailed information. But I believe that you have things the wrong way around. It is not a questi

Re: Tomcat Java Settings for each webapps, and virtual host strange issue.

2013-12-26 Thread Mark Thomas
On 26/12/2013 04:30, Peter wrote: > Hi all, I am having strange issues with tomcat 7 as well as tomcat 8, > following is details of that issue, please someone help me to configure > java for each webapps You can't do that. You can only have one version of Java per OS process / Tomcat instance. If

Tomcat Java Settings for each webapps, and virtual host strange issue.

2013-12-25 Thread Peter
Hi all, I am having strange issues with tomcat 7 as well as tomcat 8, following is details of that issue, please someone help me to configure java for each webapps # This Java is supported by one webapp "host1" $ ./java -version java version "1.7.0_45" OpenJDK Runtime Environment (rhel-2.4.3.3.el

Re: Virtual Host Alias ignored?

2012-08-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff, On 8/29/12 12:09 PM, Jeff Wild wrote: > I have a A record for mydomain.com and a CNAME record for > www.mydomain.com. > > When I enter domain.com in my browser, everything works fine but > www.domain.com results in "Server not found." Did yo

FW: Virtual Host Alias ignored?

2012-08-30 Thread Jeff Wild
-Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Wednesday, August 29, 2012 4:18 PM To: Tomcat Users List Subject: Re: Virtual Host Alias ignored? 2012/8/30 Jeff Wild : > -Original Message- > From: Konstantin Kolinko [mailto:knst.koli...@gma

Re: Virtual Host Alias ignored?

2012-08-29 Thread Konstantin Kolinko
2012/8/30 Jeff Wild : > -Original Message- > From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] > Sent: Wednesday, August 29, 2012 11:49 AM > To: Tomcat Users List > Subject: Re: Virtual Host Alias ignored? > > 2012/8/29 Jeff Wild : >> Tomcat 6 (standal

RE: Virtual Host Alias ignored?

2012-08-29 Thread Jeff Wild
-Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Wednesday, August 29, 2012 11:49 AM To: Tomcat Users List Subject: Re: Virtual Host Alias ignored? 2012/8/29 Jeff Wild : > Tomcat 6 (standalone), several virtual hosts > > > > I have

Re: Virtual Host Alias ignored?

2012-08-29 Thread Konstantin Kolinko
2012/8/29 Jeff Wild : > Tomcat 6 (standalone), several virtual hosts > > > > I have a A record for mydomain.com and a CNAME record for > www.mydomain.com. > > When I enter domain.com in my browser, everything works fine but > www.domain.com results in "Server not found." > > > > 1. Is my configurat

Virtual Host Alias ignored?

2012-08-29 Thread Jeff Wild
Tomcat 6 (standalone), several virtual hosts I have a A record for mydomain.com and a CNAME record for www.mydomain.com. When I enter domain.com in my browser, everything works fine but www.domain.com results in "Server not found." 1. Is my configuration correct when no https is required?

Re: tomcat maven plugin + configuring virtual host for the embedded tomcat ?

2012-07-31 Thread Olivier Lamy
gt; >>>> I may be too hopeful, but is this useful enough to be added as a new >>>> feature of tomcat maven plugin ? >>>> I imagine putting these aliases in the plugin's configuration in the >>>> pom.xml .. >>>> >>>> T

Re: tomcat maven plugin + configuring virtual host for the embedded tomcat ?

2012-07-31 Thread Albert Kam
to be added as a new >>> feature of tomcat maven plugin ? >>> I imagine putting these aliases in the plugin's configuration in the >>> pom.xml .. >>> >>> Thanks ! >>> >>> On Tue, Jul 31, 2012 at 12:54 AM, Olivier Lamy wrote: >>>>

Re: tomcat maven plugin + configuring virtual host for the embedded tomcat ?

2012-07-31 Thread Albert Kam
ion in the pom.xml >> .. >> >> Thanks ! >> >> On Tue, Jul 31, 2012 at 12:54 AM, Olivier Lamy wrote: >>> Hi, >>> Not possible currently. >>> What is your use case ? those goals are for dev purpose. >>> >>> 2012/7/27 Albert Kam :

Re: tomcat maven plugin + configuring virtual host for the embedded tomcat ?

2012-07-31 Thread Olivier Lamy
goals are for dev purpose. >> >> 2012/7/27 Albert Kam : >>> I am currently using the snapshot version of tomcat maven plugin. >>> And i am using tomcat7:run and tomcat7:run-war-only (for webapps with >>> overlay) actively. >>> >>> And the time h

Re: tomcat maven plugin + configuring virtual host for the embedded tomcat ?

2012-07-30 Thread Albert Kam
version of tomcat maven plugin. >> And i am using tomcat7:run and tomcat7:run-war-only (for webapps with >> overlay) actively. >> >> And the time has come for me to try out virtual host .. and as i >> understand it, i have to configure the host, context, etc .. >&g

Re: tomcat maven plugin + configuring virtual host for the embedded tomcat ?

2012-07-30 Thread Olivier Lamy
e time has come for me to try out virtual host .. and as i > understand it, i have to configure the host, context, etc .. > But i've been using the embedded tomcat 'supplied' by the tomcat maven > plugin so far, > > so i wonder if there's a way to configure virtua

tomcat maven plugin + configuring virtual host for the embedded tomcat ?

2012-07-27 Thread Albert Kam
I am currently using the snapshot version of tomcat maven plugin. And i am using tomcat7:run and tomcat7:run-war-only (for webapps with overlay) actively. And the time has come for me to try out virtual host .. and as i understand it, i have to configure the host, context, etc .. But i've

Re: Accessing Virtual Host through load blancer

2012-05-29 Thread Reka Thirunavukkarasu
Thanks for the insight information. > Don't /plan/ to do it, /do it/.  You /must/ send a "Host:" header to Tomcat, > to allow it to pick the correct VirtualHost.  Otherwise how would it do it ? > That's the HTTP/1.1 protocol, nothing special with Tomcat. Then we will implement it. Reka. ---

Re: Accessing Virtual Host through load blancer

2012-05-29 Thread André Warnier
ot using Apache httpd instead the load balancer that we have developed which will balance load within tomcat instances. Obviously, the issue is with our load balancer since it is rewriting the url to one of the actual running tomcat instance though the request is to virtual host. Since we plan

Re: Accessing Virtual Host through load blancer

2012-05-29 Thread Reka Thirunavukkarasu
al running tomcat instance though the request is to virtual host. Since we plan to use our load balancer, we plan to send additional http header with virtual host information to tomcat. In this case, how could i handle it in tomcat level? I have defined the virtual hosts in Server.xml. And i have de

Re: Accessing Virtual Host through load blancer

2012-05-29 Thread Reka Thirunavukkarasu
al running tomcat instance though the request is to virtual host. Since we plan to use our load balancer, we plan to send additional http header with virtual host information to tomcat. In this case, how could i handle it in tomcat level? I have defined the virtual hosts in Server.xml. And i have de

Re: Accessing Virtual Host through load blancer

2012-05-29 Thread Casper Wandahl Schmidt
Den 29-05-2012 13:35, Reka Thirunavukkarasu skrev: Hi I'm configuring a load balancer in front of two tomcat instances in the same machine. I wanted to access my name based virtual host which was created across those two tomcat instances through load balancer. In this case, when i s

Re: Accessing Virtual Host through load blancer

2012-05-29 Thread André Warnier
Reka Thirunavukkarasu wrote: Hi I'm configuring a load balancer in front of two tomcat instances in the same machine. I wanted to access my name based virtual host which was created across those two tomcat instances through load balancer. In this case, when i send a request like the foll

RE: Default App when virtual host under Tomcat 7.0.20

2011-08-30 Thread Caldarale, Charles R
> From: Rain Man [mailto:cmssea...@hotmail.com] > Subject: Default App when virtual host under Tomcat 7.0.20 > I'm trying to have virtual hosts in Tomcat 7.0.20 with a default app > WITHOUT renaming everything ROOT Not sure why you want to do things the hard way, but so be

Default App when virtual host under Tomcat 7.0.20

2011-08-30 Thread Rain Man
I'm trying to have virtual hosts in Tomcat 7.0.20 with a default app WITHOUT renaming everything ROOT AND WITHOUT using Apache http server in front Steps done so far put fake domain in windows host file 127.0.0.1 fakedomain.com Started Tomcat and logged into Host Manager. Add virtual

Re: virtual host for apache/tomcat server

2011-03-31 Thread Tobias Crefeld
Am Thu, 31 Mar 2011 07:49:07 -0400 schrieb James Pifer : > So I have a web server at: http://server.domain.com that has just > static web pages, etc. > > I have a tomcat jsp that I want to respond to > http://myapp.domain.com. > > I setup a VirtualHost similar to you example, but when I go > t

Re: virtual host for apache/tomcat server

2011-03-31 Thread James Pifer
On Thu, 2011-03-31 at 00:57 +0200, Tobias Crefeld wrote: > Am Wed, 30 Mar 2011 15:09:12 -0400 schrieb James Pifer > : > > > Ok, my httpd.conf is pretty standard. It includes proxy_ajp.conf > > which has: > > > > LoadModule proxy_ajp_module modules/mod_proxy_ajp.so > > ProxyPass /tomcat/ ajp://lo

Re: virtual host for apache/tomcat server

2011-03-30 Thread Tobias Crefeld
Am Wed, 30 Mar 2011 15:09:12 -0400 schrieb James Pifer : > Ok, my httpd.conf is pretty standard. It includes proxy_ajp.conf > which has: > > LoadModule proxy_ajp_module modules/mod_proxy_ajp.so > ProxyPass /tomcat/ ajp://localhost:8009/ I only have some experience with Tomcat-6, not Tomcat-5.5,

Re: virtual host for apache/tomcat server

2011-03-30 Thread James Pifer
cat/myapp.jsp > > > > So tomcat in the url above is the apache proxy address for the tomcat > > server. > > Okay. What proxy are you using mod_proxy_ajp? mod_proxy_http? mod_jk? > What are your ProxyPass settings (or JkMounts)? > > > I want to setup a

Re: virtual host for apache/tomcat server

2011-03-30 Thread Christopher Schultz
you using mod_proxy_ajp? mod_proxy_http? mod_jk? What are your ProxyPass settings (or JkMounts)? > I want to setup a virtual host in apache to automatically load this app > if I type: > http://myapp.mydomain.com Sounds reasonable. Obviously, you'll have to register that hostname in DNS somewher

virtual host for apache/tomcat server

2011-03-30 Thread James Pifer
I have the following installed on CentOS 5.5 httpd-2.2.3-43.el5.centos.3 tomcat5-5.5.23 I have a small jsp app that I CAN hit through apache like: http://www.mydomain.com/tomcat/myapp.jsp So tomcat in the url above is the apache proxy address for the tomcat server. I want to setup a virtual

Re: How to setup webapp specific parameter for virtual host in Tomcat?

2011-03-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 3/2/2011 4:20 PM, jo...@centrum.cz wrote: > thank you for your reply. Based on your answer I tried to remove docBase > attribute > in ROOT.xml and it started to work ! :-) > > The thing why it didn't come to my mind before is the fact that

RE: How to setup webapp specific parameter for virtual host in Tomcat?

2011-03-02 Thread joe.k
15:24 > Předmět: RE: How to setup webapp specific parameter for virtual host in > Tomcat? > >> From: jo...@centrum.cz [mailto:jo...@centrum.cz] >> Subject: How to setup webapp specific parameter for virtual host in Tomcat? > >> > unpackWARs="true"

RE: How to setup webapp specific parameter for virtual host in Tomcat?

2011-03-02 Thread Caldarale, Charles R
> From: jo...@centrum.cz [mailto:jo...@centrum.cz] > Subject: How to setup webapp specific parameter for virtual host in Tomcat? >unpackWARs="true" autoDeploy="true"> > > > > The docBase is incorrect, and the path is missing. However, y

RE: How to setup webapp specific parameter for virtual host in Tomcat?

2011-03-02 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:mgai...@hotmail.com] > Subject: RE: How to setup webapp specific parameter for virtual host in > Tomcat? > docBase > The value of this field must NOT be set when the Context is > configured using a META-INF/context.xml file > as it wi

RE: How to setup webapp specific parameter for virtual host in Tomcat?

2011-03-02 Thread Martin Gainty
tion, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > To: users@tomcat.apache.org > Subject: How to setup webapp specific parameter for virtual host in Tomcat? > Date: Wed, 2 Mar 2011 13:50:09 +0100 > From: jo...@centrum.cz > > > Hi everybody,

How to setup webapp specific parameter for virtual host in Tomcat?

2011-03-02 Thread joe.k
Hi everybody, I would like to have this setup in Tomcat: 1. virtual host 2. webapp resides directly in ROOT and is autoDeployed 3. I need to pass some specific webapp parameter in Tomcat configuration (outside war) 1st I have this scenario: and ROOT.war in directory $CATALINA_BASE/vhosts

Re: Virtual host, alias and context parameters

2010-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julien, On 12/11/2010 10:50 AM, Julien Martin wrote: > Thanks all for your replies and sorry for the upper case. > I am already parsing the domain name in my app and I think I will stick to > that. I'm a bit late to the thread, but here's a suggestio

Re: Virtual host, alias and context parameters

2010-12-11 Thread Julien Martin
(a) With the Alias solution, there will be a single copy of your web > application. > To react differently depending on the hostname that the users call up, that > web application can get the hostname of the request that was sent, and do > conditional things depending on it. > > (b)

  1   2   3   4   5   >