Re: IP-based virtual hosting with useIPVHosts=true always goes to default host

2012-06-18 Thread Assaf Urieli
Hi all, I solved this issue following a parallel discussion on another forum: http://forum.linode.com/viewtopic.php?f=19t=8991 Basically, I had IPTables firewall rules rerouting port 443 traffic to port 8443, and port 80 traffic to port 8080. This is because the tomcat6 user cannot access ports

Re: IP-based virtual hosting with useIPVHosts=true always goes to default host

2012-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Assaf, On 6/15/12 6:33 AM, Assaf Urieli wrote: So, the addresses to test are: http://www.joli-ciel.com/test.jsp http://www.moyshele.com/test.jsp http://178.79.152.69/test.jsp http://176.58.107.88/test.jsp And exactly the same four, but with

Re: IP-based virtual hosting with useIPVHosts=true always goes to default host

2012-06-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Assaf, On 6/18/12 4:46 AM, Assaf Urieli wrote: Hi all, I solved this issue following a parallel discussion on another forum: http://forum.linode.com/viewtopic.php?f=19t=8991 Basically, I had IPTables firewall rules rerouting port 443 traffic

Re: IP-based virtual hosting with useIPVHosts=true always goes to default host

2012-06-15 Thread Assaf Urieli
Hi Chris, On 6/8/12 11:12 AM, Assaf Urieli wrote: Ok, this is strange. I created a test.jsp page that prints request.getLocalName(), request.getServerName(), and request.getLocalAddr(). I tried various scenarios in the browser: http://domain1.com, http://www.domain1.com, http:/1.2.3.4,

Re: IP-based virtual hosting with useIPVHosts=true always goes to default host

2012-06-15 Thread André Warnier
Assaf Urieli wrote: ... My /etc/hosts file: 178.79.152.69www.joli-ciel.com bilbo.joli-ciel.com bilbo.aplikaterm.com www.aplikaterm.com joli-ciel.com bilbo Just following this thread and learning, but note that an Internet reverse-DNS

Re: IP-based virtual hosting with useIPVHosts=true always goes to default host

2012-06-15 Thread Mark Eggers
Comments are embedded below with: Comment some stuff Comment   - Original Message - From: Assaf Urieli assaf.uri...@gmail.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Friday, June 15, 2012 3:33 AM Subject: Re: IP-based virtual hosting

Re: IP-based virtual hosting with useIPVHosts=true always goes to default host

2012-06-14 Thread Assaf Urieli
Thanks Mark Konstantin for your replies. I'm still having no luck here. I've tried to apply all of Mark's suggestions to Ubuntu. SAN certificates are not currently an option for me (because of pricing, and also because the two domains do not officially belong to the same legal entity). My

Re: IP-based virtual hosting with useIPVHosts=true always goes to default host

2012-06-14 Thread Assaf Urieli
Answering my own question to a certain extent: * When an HTTP/HTTPS request is made, when and how do request.getLocalName() and request.getLocalAddr() get filled in? From v6.0.35 source code, org/apache/catalina/connector/CoyoteAdapter.java, line 489: if (connector.getUseIPVHosts())

Re: IP-based virtual hosting with useIPVHosts=true always goes to default host

2012-06-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Assaf, On 6/8/12 11:12 AM, Assaf Urieli wrote: Ok, this is strange. I created a test.jsp page that prints request.getLocalName(), request.getServerName(), and request.getLocalAddr(). I tried various scenarios in the browser: http://domain1.com,

IP-based virtual hosting with useIPVHosts=true always goes to default host

2012-06-08 Thread Assaf Urieli
hosts on a secured connection can be problematic. So, I'm trying to accomplish this via IP-based virtual hosting, using the useIPVHosts=true flag. (Note: I've tried name-based virtual hosting with useIPVHosts=false, and it doesn't work either) I've gone through the full thread discussing

Re: IP-based virtual hosting with useIPVHosts=true always goes to default host

2012-06-08 Thread Konstantin Kolinko
#General_Tips_on_Running_SSL Finally, using name-based virtual hosts on a secured connection can be problematic. So, I'm trying to accomplish this via IP-based virtual hosting, using the useIPVHosts=true flag. (Note: I've tried name-based virtual hosting with useIPVHosts=false, and it doesn't work

Re: IP-based virtual hosting with useIPVHosts=true always goes to default host

2012-06-08 Thread Assaf Urieli
Hello, Looking at the code, the value used for host name in IP-based virtual hosts is ServletRequest.getLocalName(). It is not getLocalAddr() and there is no pattern in AccessLogValve that prints it. You can write simple JSP page that will display its value. Ok, this is strange. I created

Re: IP-based virtual hosting with useIPVHosts=true always goes to default host

2012-06-08 Thread Mark Eggers
From: Konstantin Kolinko knst.koli...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Friday, June 8, 2012 3:02 AM Subject: Re: IP-based virtual hosting with useIPVHosts=true always goes to default host 2012/6/8 Assaf Urieli assaf.uri

RE: IP-based virtual hosting with Tomcat(6)

2009-08-03 Thread Jeffrey Janner
] Sent: Wednesday, July 29, 2009 5:13 PM To: Tomcat Users List Subject: Re: IP-based virtual hosting with Tomcat(6) Mark, If I wanted to use the same SSL certificate for all virtual hosts does it follow that Thanx, /U *** NOTICE

Re: IP-based virtual hosting with Tomcat(6)

2009-08-03 Thread Borut Hadžialić
Maybe this will be helpfull to you? http://www.openssl.org/docs/apps/x509v3_config.html#Subject_Alternative_Name_ I am not sure how well that extension is supported in browsers and other ssl clients, or can you get a CA to sign a certificate that contains these extensions. But, I wouldn't be

Re: IP-based virtual hosting with Tomcat(6)

2009-07-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 7/29/2009 10:21 PM, Bill Barker wrote: uma...@comcast.net wrote in message news:2139500381.6699651248905929000.javamail.r...@sz0016a.emeryville.ca.mail.comcast.net... All the vHosts are to be situated on the same server. The server may

IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread uma_rk
I am using Tomcat6.0.18 on RHEL5. I would like to set up IP-based virtual hosting using Tomcat alone ( as opposed to using Apache front-end). The documentation (http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html) as well as examples of it seem to illustrate the use of name-based

Re: IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread Mark Thomas
uma...@comcast.net wrote: I am using Tomcat6.0.18 on RHEL5. I would like to set up IP-based virtual hosting using Tomcat alone ( as opposed to using Apache front-end). The documentation (http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html) as well as examples of it seem

Re: IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread Christopher Schultz
=Catalina defaultHost=ren Host name=ren appBase=renapps/ Host name=stimpy appBase=stimpyapps/ /Engine I would like to avoid using name-based vhosts to sidestep the attendant SSL issues. You will probably have similar issues with IP-based virtual hosting: if the CN in the SSL cert

RE: IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread Jeffrey Janner
[mailto:ch...@christopherschultz.net] Sent: Wednesday, July 29, 2009 2:58 PM To: Tomcat Users List Subject: Re: IP-based virtual hosting with Tomcat(6) You can bind Connector elements to a specific IP address using the address attribute. You can nest Connector elements within an Engine element

RE: IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread uma_rk
. Thanx again! /U - Original Message - From: Jeffrey Janner To: Tomcat Users List Sent: Wed, 29 Jul 2009 20:21:47 + (UTC) Subject: RE: IP-based virtual hosting with Tomcat(6) Well, Chris is almost correct here. But Connectors are nested as the Service level, not at the Engine level

Re: IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread André Warnier
uma...@comcast.net wrote: Thanks much for the clarification.In this case, how do I nominate the default virtual host? Is there something called default connector, such as that which may be needed if a request arrives into an unconfigured loopback address (say, 127.0.0.200)? Are you sure you

Re: IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread uma_rk
Thomas To: Tomcat Users List Sent: Wed, 29 Jul 2009 19:45:51 + (UTC) Subject: Re: IP-based virtual hosting with Tomcat(6) uma...@comcast.net wrote: I am using Tomcat6.0.18 on RHEL5. I would like to set up IP-based virtual hosting using Tomcat alone ( as opposed to using Apache front-end

Re: IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread uma_rk
10.1.1.1 (configured as an external address of this server). Which vHost would serve this request? /U - Original Message - From: André Warnier To: Tomcat Users List Sent: Wed, 29 Jul 2009 21:48:28 + (UTC) Subject: Re: IP-based virtual hosting with Tomcat(6) uma...@comcast.net wrote

Re: IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread André Warnier
uma...@comcast.net wrote: All the vHosts are to be situated on the same server. The server may be addressed using any loopback address or any non-loopback addressed configured on the NICs of the server. Hence I have the mapping 127.0.0.9 - vhost1 127.0.0.10 - vhost 2 Let's say that a

Re: IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread Bill Barker
uma...@comcast.net wrote in message news:2139500381.6699651248905929000.javamail.r...@sz0016a.emeryville.ca.mail.comcast.net... All the vHosts are to be situated on the same server. The server may be addressed using any loopback address or any non-loopback addressed configured on the NICs of the

Re: IP Based Virtual Hosting

2008-02-10 Thread Hassan Schroeder
On Feb 10, 2008 11:05 AM, Alaska Winter [EMAIL PROTECTED] wrote: Is there a way to enable IP based hosting in tomcat directly Minimally, you just need a Connector element for each IP, and the proper DNS assignments. HTH, -- Hassan Schroeder [EMAIL PROTECTED]

IP Based Virtual Hosting

2008-02-10 Thread Alaska Winter
Hi, I use Tomcat 6.0.10 as a stand-alone web application server (not sitting behind Apache httpd). I host several domains on a single physical host using name-based virtual hosting set up in server.xml. I need to enable ssl for one of the domains. I understand I can no longer use name-based

Re: problems with IP based virtual hosting with multiple SSL certificates and APR

2007-07-21 Thread Mark Thomas
Przemyslaw Ceglowski wrote: Dear Users, I have been fighting with it for good few weeks now and I cannot manage to make it work myself so any help would be appreciated. Short version: - remove all the context elements - create a folder named ROOT inside every appBase - move the current

RE: problems with IP based virtual hosting with multiple SSL certificates and APR

2007-07-19 Thread Przemyslaw Ceglowski
:37 AM To: users@tomcat.apache.org Subject: problems with IP based virtual hosting with multiple SSL certificates and APR Dear Users, I have been fighting with it for good few weeks now and I cannot manage to make it work myself so any help would be appreciated. With the below setup, only

RE: problems with IP based virtual hosting with multiple SSL certificates and APR

2007-07-19 Thread Caldarale, Charles R
From: Przemyslaw Ceglowski [mailto:[EMAIL PROTECTED] Subject: RE: problems with IP based virtual hosting with multiple SSL certificates and APR Although I do not think I have something wrong in it For one thing, placing Context elements in server.xml is strongly discouraged these days

RE: problems with IP based virtual hosting with multiple SSL certificates and APR

2007-07-19 Thread Przemyslaw Ceglowski
: problems with IP based virtual hosting with multiple SSL certificates and APR From: Przemyslaw Ceglowski [mailto:[EMAIL PROTECTED] Subject: RE: problems with IP based virtual hosting with multiple SSL certificates and APR Although I do not think I have something wrong in it For one thing

problems with IP based virtual hosting with multiple SSL certificates and APR

2007-07-18 Thread Przemyslaw Ceglowski
Dear Users, I have been fighting with it for good few weeks now and I cannot manage to make it work myself so any help would be appreciated. With the below setup, only www.domain1.com works fine by HTTPS. I can reach the content of the others by HTTP but HTTPS is giving me 404 for all of them.

Problems ip based virtual hosting apache2+tomcat5.0.19

2005-12-14 Thread Jens Werdin
Hi all, I have an apache 2.0.49 with some ip based virual hosts. What i try to do is giving each virtual host its own webapplication. Apache and tomcat are working. its working if I try with localhost. when i try the ip address of a virtual hosts i always get the answer. no host matches server

Re: Problems ip based virtual hosting apache2+tomcat5.0.19

2005-12-14 Thread Jens Werdin
Hi Chris, thank you for your help. I made a test and it seems to work fine. Jens Am Mittwoch 14 Dezember 2005 17:08 schrieb Chris Lear: * Jens Werdin wrote (14/12/05 15:28): Hi all, I have an apache 2.0.49 with some ip based virual hosts. What i try to do is giving each virtual host