I still see IP address and not domain name

Posted April 28, 2020 146 views

Hi everyone!

I create a new droplets with Ubuntu 18.04 in order to install Moodle on it. I will need later to create a new droplets for Big Blue button.

I followed all this instruction:

I already change DNS from my domain to my droplets. But when I type in browser it display this

Can someone help me to figure it out the issue?
Is there any miss-configuration from the server that I need to do?


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.

3 answers

Hello, @amministrazioneDolphin

Could you please share the content of the virtual host for your domain name so we can check this? The virutal host should have a content like this one:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName your_domain
    ServerAlias www.your_domain
    DocumentRoot /var/www/your_domain
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

Also if you’ve used certbot for the SSL Certificate there should be a virtual host for port 443 as well.

Also are you using a .htaccess file and if so would mind sharing the content of this one two?

At the moment there is a 301 Redirect in place and we just need to see from where it’s coming in order to sort this out.


Hi Alex,

Yes, here you are:
When I’m going to /etc/apache2/sites-available
I have 3 file:

000-default-le-ssl.conf (which create when I install the SSL with certbot)
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/
ErrorLog ${APACHELOGDIR}/error.log
CustomLog ${APACHELOGDIR}/access.log combined


<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/
ErrorLog ${APACHELOGDIR}/error.log
CustomLog ${APACHELOGDIR}/access.log combined

The main root is located at /var/www/html/moodle
so there URL should be

About the file .htaccess is empty. When I use the command (nano .htaccess) on root directory on /moodle/ the file is empty

Thank you for your help

I forgot to mentioned that inside <virtualhost> the file 000-default.conf I have this code:

RewriteEngine on
Rewritecond %{SERVERNAME} [OR]
RewriteRule ^ https://%{SERVERNAME}%{REQUESTURI} [END, NE,R=permanent]

Submit an Answer