Akshay,

On 12/7/15 5:26 AM, Kernel freak wrote:
> <Connector port="80"
> protocol="org.apache.coyote.http11.Http11NioProtocol"
> compression="force" compressionMinSize="1024"
>                connectionTimeout="20000"  maxPostSize="5242880"
>                URIEncoding="utf-8"
>  compressableMimeType="text/html,text/xml,text/plain,text/css,text/
> javascript,application/x-javascript,application/javascript"/>
> 
> 
> <Connector port="443"
> protocol="org.apache.coyote.http11.Http11NioProtocol"
> maxPostSize="5242880" SSLEnabled="true" maxThreads="200" compre$
>               compressionMinSize="1024" scheme="https" secure="true"
> clientAuth="false"  sslProtocol="TLS"
>                keystoreFile="keystorefile" keystorePass="PASSWORD"
> URIEncoding="utf-8"
>  compressableMimeType="text/html,text/xml,text/plain,text/css,text/
> javascript,application/x-javascript,application/javascript"/>

You have configured Tomcat for ports 80 and 443. When you start httpd:

> [....] Restarting web server: apache2(98)Address already in use:
> make_sock: could not bind to address [::]:80
> (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
> no listening sockets available, shutting down
> Unable to open logs
> Action 'start' failed.
> The Apache error log may have more information.
>  failed!

... you get a port conflict. You have to choose: httpd or Tomcat on port
80 (and 443).

> I understand that Tomcat is running on 80, but how do I then configure
> the servers so they can run simultaneously.

It looks like you started configuring for mod_jk, but didn't really
finish. What you have to do is proxy *all* applications from http ->
Tomcat. Then remove the HTTP <Connectors> from Tomcat and rely
exclusively on the AJP connector(s). (You really only need one single
AJP connector, since it will forward TLS information across to Tomcat.)

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to