I have my Apache http server running on localhost:80 and restlet server on localhost:8182, but I want to configure above combination just like Apache http server and Apache tomcat servlet container can be configured with mod_jk library.
Is it possible?
Do I have to modify code of mod_jk for this purpose.
Please advice!!!
Thanks in advance!!
Ashish
There are two options:
Setting your Restlet server connector with Protocol.AJP (for use with mod_jk or mod_proxy_ajp), which works with the Jetty connector.
Using mod_proxy as a reverse proxy to your Restlet connector (with Protocol.HTTP).
Unable to do this as of now, Using Apache Tomcat only as servlet container.
Related
I am currently using Mod_jk to have a connectivity between Apache and Tomcat through non-secure AJP protocol. Is there any way I can implement secure connection? Can I achieve this using mod_proxy_http and proxy over https? As far as I know using mod_proxy_http is also not a secure one.
Can anyone Guide me here? I am using Tomcat 9 and Apache 2.4 versions.
Thanks,
Anshu
You can configure a secure connection between Apache and tomcat using Mod_proxy. Refer link1 and link2 for more information.
Is it necessary for jenkins, that we need to install apache web server even if we have tomcat installed. ?
From - https://jenkins.io/doc/book/installing/
Jenkins is typically run as a standalone application in its own process with the built-in Java servlet container/application server (Jetty).
Jenkins can also be run as a servlet in different Java servlet containers such as Apache Tomcat or GlassFish.
So you can use Jenkins "as-is" or use with Tomcat.
No. Apache Tomcat can handle HTTP and HTTPS requests on its own as configured in server.xml
Default HTTP Port is 8080 -> default local URL: http://localhost:8080/jenkins
Default HTTPS Port is 8443 -> default local URL: https://localhost:8443/jenkins
I have Alfresco 5.x enterprise. I want to have httpd web server ahead of actual Tomcat of Alfresco.
Do anyone have step by step guide to configure Apache httpd (I'm new to it). Help to configure Apache httpd with Tomcat. Proxy way is prefered.
I am configuring load balancing using httpd which will connect to jboss using AJP (mod_jk connector).
My Jboss is running using SSL and httpd is not with SSL.
How can I establish communication from http httpd to https jboss?
Any help appreciated.
I have enable https in httpd so that it can route to the https of jboss properly. And it has started working as expected.
Instead of using mod_jk, have you considered using mod_cluster? It fits well with JBoss and serves sticky session and session replication as well.
I have server setup like Apache2 + mod_jk + two instances of Tomcat (7.0.33). Now I am using atmosphere with tomcat. Atmosphere with long-polling is working just fine. But now I want to use web sockets as transport protocol in atmosphere. But it seems Apache is unable to forward request to Tomcat and it gives me error
Can't establish a connection to the server at ws://localhost/Myapp/update/?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1&X-Atmosphere-Transport=websocket&X-Cache-Date=0&Content-Type=application/json.
Since Apache 2.4.6, Apache httpd forwards/proxies websockets
Mod_Jk implies in the translation of the request from the HTTP into AJP/13 protocol which implies that the web server should have some ability to handle/process the request.
You may be better served by using mod_proxy instead to establish the apache-tomcat communication.
Apache doesn't support WebSocket, so you need to use Ningx or HAProxy.
I think you can do it using a module called mod_proxy_wstunnel
https://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html
I don't think this existed when the question was originally asked. In version 2.4.5 Apache added support for this mod.