Question

I can not open my site. “Apache2 Ubuntu Default Page ”

I use a rental server and run it using PostgreSQL, Python, virtaulenv. We set up our own domain acquired by Namecheap on rental server. The IP address displayed on the rental server (supposing it is 123.45.6.789, TTL is 123) We have registered it in Namecheap. I can access by IP address, but when accessing in the domain, ‘Apache 2 Ubuntu Default Page’ was displayed. I do not use Apche 2, but Although the port is 5000, should I add it and register it with Namecheap? How do I get the site to show up? I can not open it in the domain and 123.45.6.789, but I can open it if 123.45.6.789:5000.


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hey friend,

It sounds like you have Apache running on port 80 and your application on port 5000. You will need a web server on port 80 to handle this, as you cannot use DNS to mask a port number. What you will need to do is create a reverse proxy, which essentially means this:

When the user requests mydomain.com:80 (80 is default used when requesting “mydomain.com” without port), Apache loads the contents of “mydomain.com:5000” and returns them to the user requesting it over port 80.

There are several reverse proxy guides available here: https://www.digitalocean.com/community/tutorials?q=reverse+proxy

Jarland