RE: problems with IP based virtual hosting with multiple SSL certificates and APR
Any ideas guys? Although I do not think I have something wrong in it but maybe someone could give me an example of working server.xml file in the same configuration? Regards, Przem -Original Message- From: Przemyslaw Ceglowski [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 18, 2007 10: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 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. There are no errors in Catalina.out. Regards, Przemek # netstat -ntl Tcp 0 0 192.168.86.104:4430.0.0.0:* LISTEN Tcp 0 0 192.168.86.103:4430.0.0.0:* LISTEN Tcp 0 0 192.168.86.74:443 0.0.0.0:* LISTEN Tcp 0 0 192.168.86.73:443 0.0.0.0:* LISTEN Tcp 0 0 192.168.86.72:443 0.0.0.0:* LISTEN Tcp 0 0 192.168.86.71:443 0.0.0.0:* LISTEN Tcp 0 0 :::127.0.0.1:8005 :::*LISTEN Tcp 0 0 :::80 :::*LISTEN OS: Fedora Core 6 Software versions: Apache Tomcat Version 6.0.10 Java(TM) SE Runtime Environment (build 1.6.0-b105) tomcat-native-1.1.8 apr-1.2.9 server.xml === - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 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, placing elements in server.xml is strongly discouraged these days. These are supposed to go in either META-INF/context.xml of each webapp or conf/Catalina/[host]/[appname].xml. > I have no idea what a docBase attribute of an empty string is supposed to do. What actually exists under each of your appBase directories? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems with IP based virtual hosting with multiple SSL certificates and APR
Thanks for the tip, I will fix that, although I do not think that is the cause of my problem as accessing each of the webapps by http redirects me correctly. Under each of the appBase I have index.html that redirects to the subfolder of the application: [EMAIL PROTECTED] www.domain1.com]# cat index.html http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> Apache Tomcat http://www.domain1.com/ExpenSysWT"; /> [EMAIL PROTECTED] www.domain1.com]# pwd /usr/local/tomcat/webapps/www.expensys-ged.com [EMAIL PROTECTED] www.domain1.com]# ll total 10688 drwxr-xr-x 5 root root4096 Jul 17 10:59 ExpenSysWT -rw-r--r-- 1 root root10907980 Jul 17 10:59 ExpenSysWT.war -rw-r--r-- 1 root content 411 Jul 16 22:49 index.html drwxr-xr-- 5 root content 4096 Jun 18 23:07 manager Przem -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Thursday, July 19, 2007 2:08 PM To: Tomcat Users List Subject: RE: 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, placing elements in server.xml is strongly discouraged these days. These are supposed to go in either META-INF/context.xml of each webapp or conf/Catalina/[host]/[appname].xml. > I have no idea what a docBase attribute of an empty string is supposed to do. What actually exists under each of your appBase directories? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with IP based virtual hosting with multiple SSL certificates and APR
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 contents of each appBase to the new ROOT folder >appBase="/usr/local/tomcat/webapps/www.domain3.com/" > unpackWARs="true" autoDeploy="true"> > > directory="logs" prefix="www.domain3.com_access." >suffix=".log" pattern="common" resolveHosts="false"/> > Long version: docBase can be absolute or relative so with a value of "" it is assumed to be relative ends up being the same as appBase. A docBase should never be the same as an appBase. Older Tomcat versions allowed this as an unfortunate side effect a bug that has since been fixed. Further, to align with later versions of the servlet spec, any folder in an appBase is assumed to be a context regardless of whether it contains a WEB-INF directory or not. HTH, Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]