By blob
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.
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.