Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

My configuration is as follows: Ubuntu, Nginx, Apache Tomcat 8. I only use Tomcat to run a servlet that queries MySQL and returns JSON. My web pages are served through Nginx. Then I installed LetEncrypt to Nginx. I enabled SSL/TLS encryption mode (Full (strict)) in CloudFlare. My Servlet is working fine when I use port 8080, and return the JSON response. To make it secure I changed Tomcat server.xml connector :
<Connector port="8443"
protocol="org.apache.coyote.http11.Http11AprProtocol"
maxThreads="150"
SSLEnabled="true"
maxParameterCount="1000"
URIEncoding="UTF-8"
>
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
<SSLHostConfig>
<Certificate certificateFile="/etc/letsencrypt/live/<my-domain>/cert.pem"
certificateKeyFile="/etc/letsencrypt/live/<my-domain>/privkey.pem"
certificateChainFile="/etc/letsencrypt/live/<my-domain>/chain.pem" />
</SSLHostConfig>
</Connector>
and commented
<!-- Connector port="8080"
Restarted tomcat, but I’m still able to invoke the tomcat servlet directly using 8080 port. But, when I call it from Ajax in my web page, I get this error: net::ERR_SSL_PROTOCOL_ERROR
My Question: How to allow my servlet to be called only from my web page.
hashembarret@gmail.com
Witomir Łękowski
doug.landau
5350d4b31109448dbeb34a6ffc857a
RuRo
max johnson
rem3n
bo
d.mckinstry
Jim Cason
Charles kubai
Charles kubai