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.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thanks for the tutorial! This works when I install Flask onto the same Apache server (10.0.100.7). However, when I install Flask on a different server (10.0.100.22) and continue with your Step # 2, I get a 503 error “The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.” Below is what I am using as my virtualhost.
<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass / http://10.0.100.22:8080/
ProxyPassReverse / http://10.0.100.22:8080/
</VirtualHost>
Very nice tutorial. Is it better to use mod_proxy or HAProxy to set up a reverse proxy/load-balancing system? We are fairly ambivalent about it, but wondering what other people’s experience has been either way? Using Ubuntu 16.04 and 18.04 LTS systems, fwiw.
Trying to follow your great tutorial. However, I am stuck with the curl http://127.0.0.1:8080/ command. It gives me as a return “GET requests are not allowed!”. The same command with port 8081 correctly returns “Howdy world!”. Any ideas on how to solve this?
Hi, thanks for this tutorial. Some notes: the / at end is crucial. Without that in place, crazy things were happening. My setup (2 different webapps running:
ProxyPass /pbr/ http://127.0.0.1:5000/
ProxyPassReverse /pbr/ http://127.0.0.1:5000/
ProxyPass /openrefine/ http://127.0.0.1:3333/
ProxyPassReverse /openrefine/ http://127.0.0.1:3333/
Question: Many places I see this also included:
# setup the proxy
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
Is that necessary? What does it do, in context of Example 1 on this page?
I keep getting the following error when testing the servers (have run sudo ufw allow 8080). OS is Ubuntu 16.04.
curl http://127.0.0.1:8080/ curl: (7) Failed to connect to 127.0.0.1 port 8080: Connection refused
Any ideas?
I already have an Apache Web Server running on my Droplet at port 80 but I’m also trying to run a java JAR file that is a Spring Boot API that also runs on port 80.
I don’t understand how to implement it with the directions listed above.
Thank you so much for this information. How would I serve static content from apache from /var/www/html directory for the / and redirect/reverse-proxy for the /app to another ip address:port and redirect/reverse-proxy /api to another ip address:port?
Thank you.
-Josh