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

Posted September 3, 2018 5.3k views

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, 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, but I can open it if

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.

Submit an Answer
1 answer

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 (80 is default used when requesting “” without port), Apache loads the contents of “” and returns them to the user requesting it over port 80.

There are several reverse proxy guides available here:


  • I added the following to /etc/apache2/sites-enabled/000-default.conf and /etc/apache2/sites-enabled/000-default-le-ssl.conf.
    “`ProxyPass / http: // domain: 5000
    ProxyPassReverse / http: // domain: 5000
    ProxyPassReverseCookieDomain IP: 5000 domain

    This caused the site to be displayed. It also encrypted with Encrypt. However, a new problem has occurred.
    I installed the following site, but when trying to create a thread (moving Python, Postgresql, virtualenv), I get an error 'Error: mongodb exception: no variable id in line 24'. I installed a domain and it was working without problems before encrypting, but I can not do it for some reason. What should I do?