Default “Welcome to nginx“ page displayed instead of Matrix Synapse web client interface !

August 21, 2019 330 views
Initial Server Setup Open Source Firewall Nginx Let's Encrypt DigitalOcean Articles

Hello,

Synapse homeserver installation was achieved with test domain name and environnement (remote VPS), following D.O tutorial. Steps including NGINX CONFIGURATION were done *as root *(step 5 was skipped for now) :

https://www.digitalocean.com/community/tutorials/how-to-install-matrix-synapse-on-ubuntu-16-04

However I can’t prevent Nginx displaying default ‘WeLCOME TO NGINX‘ page as result for calling URL ‘https://boggle.tcei-designlab.net‘ (I faced the same issue earlier while trying to install Synapse homeserver on OS Ubuntu 18.04), although the installation was achieved without bugs.

Please see lists of additional steps I have done trying to solve this issue :

• I did remove ‘/ect/nginx/sites-enabled/default‘ file and get nginx successfully restarted behind
• I gave full permissions over ‘/html/index.nginx-debian‘ folder and file
• I did verify DNS Zone : ‘A‘ entries pointing to IPV4 VPS address for both ‘boggle.tcei-designlab.net‘ and ‘www.boggle.tcei-designlab.net‘
• I did verify syntax error with command ‘sudo nginx -t‘ (none was found)
• I did verify Vhost config file :

server {
listen 80;
listen [::]:80;

root /var/www/html;
index index.html index.htm index.nginx-debian.html;

server_name boggle.tcei-designlab.net www.boggle.tcei-designlab.net;

location /_matrix {
    proxy_pass http://localhost:8008;
}

location ~ /.well-known {
    allow all;
}

}

Any help would be well appreciated !
Please let me know if some file content screenshots could help tracking what may have gone wrong !

1 Answer

Hello,

You are seeing the Default Nginx page as this is what you have in the index.nginx-debian.html file in your /var/www/html folder. If you remove this file and upload your own index.html file you would then see the content of this new index file.

With the current setup only the requests made to http://yourdomain.com/_matrix/ would connect to Synaps.

Hope that this helps!
Regards,
Bobby

Have another answer? Share your knowledge.