tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doctor Khumalo <doctortec...@hotmail.com>
Subject RE: SSL/Apache and Proxy
Date Mon, 08 Dec 2008 16:31:10 GMT

This is what I placed in my httpd-ssl.conf entry for this particular sight
 
 
<VirtualHost local3:443>        ServerName local3:443        DocumentRoot /usr/local/apache2/htdocs/stir
       DirectoryIndex index.html index.jsp index.shtml        ErrorLog logs/local3_ssl_error_log
       TransferLog logs/local3_ssl_access_log       ProxyPass / https://local3:8443/     
 ProxyPassReverse / https://local3:8443/
 
> Date: Mon, 8 Dec 2008 15:53:38 +0100> From: kdekooter@gmail.com> To: users@tomcat.apache.org>
Subject: Re: SSL/Apache and Proxy> > Could you post your apache proxy configuration?>
> > > On Mon, Dec 8, 2008 at 15:38, Doctor Khumalo <doctortechie@hotmail.com>
wrote:> >> > Anyone know anything about this or will my post be ignored?> >>
>> >> >> From: doctortechie@hotmail.com> >> To: users@tomcat.apache.org>
>> Subject: RE: SSL/Apache and Proxy> >> Date: Fri, 5 Dec 2008 14:18:12 +0000>
>>> >>> >> Here is my server.xml config.> >>> >>
I can see the main localhost but whenever I try to type https://local3, it gives me a 503
Error> >>> >>> >> ############################> >>>
>>> >>> >> <?xml> >> version='1.0' encoding='utf-8'?>>
>>> >> <Server> >> port="8005" shutdown="SHUTDOWN">> >>>
>> <Listener> >> className="org.apache.catalina.core.AprLifecycleListener">
>> SSLEngine="on" />> >>> >> <Listener> >> className="org.apache.catalina.core.JasperListener"
/>> >>> >> <Listener> >> className="org.apache.catalina.mbeans.ServerLifecycleListener"
/>> >>> >> <Listener> >> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener">
>> />> >>> >> <GlobalNamingResources>> >>> >>
<Resource name="UserDatabase"> >> auth="Container"> >>> >> type="org.apache.catalina.UserDatabase">
>>> >> description="User database> >> that can be updated and saved">
>>> >>> >> factory="org.apache.catalina.users.MemoryUserDatabaseFactory">
>>> >>> >> pathname="conf/tomcat-users.xml" />> >>>
>> </GlobalNamingResources>> >>> >> <Service name="Catalina">>
>>> >> <Connector port="80"> >> protocol="HTTP/1.1"> >>>
>>> >> connectionTimeout="20000"> >>> >> redirectPort="8443">
>> />> >>> >>> >>> >> <!-- Define a SSL HTTP/1.1
Connector on> >> port 8443> >>> >> This connector uses the JSSE
configuration,> >> when using APR, the> >>> >> connector should
be using the OpenSSL> >> style configuration> >>> >> described
in the APR documentation> >> -->> >>> >>> >>> >>
<Connector port="8443"> >> proxyPort="443" proxyName="local3" />> >>>
>>> >>> >> <Connector port="8009"> >> protocol="AJP/1.3"
redirectPort="8443" />> >>> >> <Engine name="Catalina"> >>
defaultHost="localhost">> >>> >> <Realm> >> className="org.apache.catalina.realm.UserDatabaseRealm">
>>> >>> >> resourceName="UserDatabase"/>> >>> >>>
>>> >> <Host name="localhost"> >> appBase="webapps"> >>>
>> unpackWARs="true"> >> autoDeploy="true"> >>> >> xmlValidation="false">
>> xmlNamespaceAware="false">> >>> >>> >>> >>
</Host>> >>> >>> >>> >> <Host name="local2">
>> debug="1" appBase="webapps/local2"> >> unpackWARs="true">> >>>
>> <Logger> >> className="org.apache.catalina.logger.FileLogger"> >>
directory="logs"> >>> >> prefix="projects."> >> suffix=".txt" timestamp="true"/>>
>>> >> <Context path=""> >> docBase="" debug="1" reloadable="true">
>> crossContext="true" />> >>> >> <Alias>local2</Alias>>
>>> >> </Host>> >>> >>> >>> >> <Host
name="local3"> >> debug="1" appBase="webapps/local3"> >> unpackWARs="true">>
>>> >> <Logger> >> className="org.apache.catalina.logger.FileLogger">
>> directory="logs"> >>> >> prefix="projects."> >> suffix=".txt"
timestamp="true"/>> >>> >> <Context path=""> >> docBase=""
debug="1" reloadable="true"> >> crossContext="true" />> >>> >>
<Alias>local3</Alias>> >>> >> </Host>> >>>
>>> >>> >> </Engine>> >>> >> </Service>>
>>> >> </Server>> >>> >> ######################################>
>>> >>> >> > From: doctortechie@hotmail.com> >> > To:
users@tomcat.apache.org> >> > Subject: SSL/Apache and Proxy> >> >
Date: Fri, 5 Dec 2008 02:31:34 +0000> >> >> >> >> >> >
How do I configure server.xml on Tomcat? I have> >> > configured SSL through Apache
and the proxy part works, however, I get> >> > this error in the ssl log> >>
>> >> >> >> > [Thu Dec 04 15:06:12 2008] [error] (111)Connection
refused: proxy: HTTPS: attempt to connect to 165.112.28.126:8443 (localhost) failed> >>
> [Thu Dec 04 15:06:12 2008] [error] ap_proxy_connect_backend disabling worker for (localhost)>
>> >> >> > _________________________________________________________________>
>> > Send e-mail anywhere. No map, no compass.> >> > http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008>
>>> >> _________________________________________________________________>
>> Send e-mail anywhere. No map, no compass.> >> http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008>
>> > _________________________________________________________________> > Send
e-mail faster without improving your typing skills.> > http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008>
> ---------------------------------------------------------------------> To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org> For additional commands, e-mail: users-help@tomcat.apache.org>

_________________________________________________________________
Send e-mail faster without improving your typing skills.
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message