Attached file is my server.xml, the service catalina with all virtual host
work correctly, the service catalinassl is not working
the subfolders of the folder /catalinassl/site3 are empty.
you kindly tell me the changes to make in server.xml
I'm not understanding
thank

Massimo Chirivì


--------------------------------------------------------------------------------------------------------



2012/8/9 Mark Eggers-2 [via Tomcat] <ml-node+s10n4985056...@n6.nabble.com>

> See comment inline.
>
> On 8/9/2012 6:58 AM, Massimo Chirivì - Ict Consultant wrote:
>
> > i have correct the server.xml, but into the folder catalinassl there is
> > www.site3.net, but all child folders are empty,
> > - with netstat the https is up
> >
> ----------------------------------------------------------------------------------
>
> > <Service name="Catalinassl">
> >
> > <Connector port="443"
> protocol="org.apache.coyote.http11.Http11NioProtocol"
> > maxHttpHeaderSize="8192" maxThreads="150" enableLookups="false"
> > disableUploadTimeout="true" acceptCount="100" scheme="https"
> secure="true"
> > SSLEnabled="true" clientAuth="false" sslProtocol="TLS"
> > keystoreFile="/conf/site3" keypass="qwertyuiop" />
> >
> >   <Engine name="Catalinassl" defaultHost="localhost">
> >   <Host name="www.site3.net" debug="1" unpackWARs="true">
> > <Logger className="org.apache.catalina.logger.FileLogger"
> >                   directory="logs"  prefix="virtual_log29."
> suffix=".txt"
> > timestamp="true"/>
> >          <Context path="" docBase="/webapps/site3" debug="0"
> > reloadable="true"/>
> >          <Valve className="org.apache.catalina.valves.AccessLogValve"
> >                   directory="logs"  prefix="virtual_log." suffix=".txt"
> >                   pattern="common"/>
> > </Host>
> >    </Engine>
> >      </Service>
> > </Server>
> >
> ----------------------------------------------------------------------------------
>
>
> No, you have not corrected your server.xml. You are ignoring everyone's
> recommendations and the Wiki document which lays out in great detail how
> to set up virtual hosts.
>
> Please read and follow this Wiki document.
>
> http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts
>
> Your paths (/webapps/site3, etc.) make absolutely NO sense unless you
> have a directory at the ROOT of your file system called /webapps/site3.
>
> /mde/
>
> >
> > 2012/8/8 Christopher Schultz-2 [via Tomcat] <
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4985056&i=0>>
> >
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
> >>
> >> Martin,
> >>
> >> On 8/7/12 1:12 PM, Martin Gainty wrote:
> >>>
> >>> <snip>INFO: Initializing Coyote AJP/1.3 on ajp-8009
> >>>> 7-ago-2012 18.42.53 org.apache.coyote.http11.Http11AprProtocol
> >>>> init GRAVE: Error initializing endpoint java.lang.Exception: No
> >>>> Certificate file specified
> >>>
> >>> </snip> client request on Port 8009 wont pass through *until* you
> >>> get the Certificate from the site administrator
> >>
> >> It appears that the OP is not using AJP at all, so your response does
> >> not help.
> >>
> >> - -chris
> >> -----BEGIN PGP SIGNATURE-----
> >> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> >> Comment: GPGTools - http://gpgtools.org
> >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> >>
> >> iEYEARECAAYFAlAh3REACgkQ9CaO5/Lv0PCmjgCgogIeyhqfRIP96KuDOWz7Q7gI
> >> /t8AoKDKdMSHsNKwCuF+k2cZvVmadex7
> >> =42Bh
> >> -----END PGP SIGNATURE-----
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=4984981&i=0>
> >> For additional commands, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=4984981&i=1>
> >>
> >>
> >>
> >> ------------------------------
> >>   If you reply to this email, your message will be added to the
> discussion
> >> below:
> >>
> >>
> http://tomcat.10.n6.nabble.com/TOMCAT-with-multiple-sites-one-on-https-others-on-http-tp4462105p4984981.html
> >>   To unsubscribe from TOMCAT with multiple sites (one on https, others
> on
> >> http), click here<
>
> >> .
> >> NAML<
> http://tomcat.10.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> >>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4985056&i=1>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4985056&i=2>
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tomcat.10.n6.nabble.com/TOMCAT-with-multiple-sites-one-on-https-others-on-http-tp4462105p4985056.html
>  To unsubscribe from TOMCAT with multiple sites (one on https, others on
> http), click 
> here<http://tomcat.10.n6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4462105&code=aW5mb0BtYXNzaW1vY2hpcml2aS5uZXR8NDQ2MjEwNXwxMTc5MDcxMzk2>
> .
> NAML<http://tomcat.10.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
  <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="443" />
    <Connector port="8009" protocol="AJP/1.3" redirectPort="443" />
    <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="site1" debug="0" unpackWARs="true">
        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="virtual_log7." suffix=".txt" timestamp="true"/>
        <Context path="" docBase="/webapps/site1" debug="0" reloadable="true"/>
        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="virtual_log." suffix=".txt"
                 pattern="common"/>
      </Host>
      <Host name="site2" debug="0" unpackWARs="true">
        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="virtual_log9." suffix=".txt" timestamp="true"/>
        <Context path="" docBase="/webapps/site2" debug="0" reloadable="true"/>
        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="virtual_log." suffix=".txt"
                 pattern="common"/>
      </Host>
    </Engine>
  </Service>
 <Service name="Catalinassl">
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol" 
maxHttpHeaderSize="8192" maxThreads="150" enableLookups="false" 
disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" 
SSLEnabled="true" clientAuth="false" sslProtocol="TLS" 
keystoreFile="/conf/site3" keypass="qwertyuiop" />
 <Engine name="Catalinassl" defaultHost="localhost">
 <Host name="site1" debug="0" unpackWARs="true">
		<Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="virtual_log29." suffix=".txt" timestamp="true"/>
        <Context path="" docBase="/webapps/site1" debug="0" reloadable="true"/>
        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="virtual_log." suffix=".txt"
                 pattern="common"/>
	</Host>
  </Engine>
  </Service>
</Server>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to