Matomo Analytics

To make your domain listen on instead of you have to do the following steps.

Before we continue, we can start off with advising you that you can also create the domain in Ploi prefixed with www already, Ploi is smart enough to detect this and setup all the configuration properly. For example, if you have a domain called and you want to have it forced to, just create it as that domain. Ploi will automatically detect this and setup the non-www to be redirected to the www version.

If you have an already existing domain in your server follow these steps:

(Make sure you replace with your own domain)

  1. Change the server_name variable inside your NGINX config. You can find this config file in this path (or you can use our UI to edit): /etc/nginx/sites-available/
  2. (Optional): If you have SSL enabled, you will have to edit the redirect too. Open up this file: /etc/nginx/ploi/ and edit these lines:




return 301$request_uri;


return 301 https://www.$host$request_uri;

3. After this, save these files and restart NGINX.

10 March 2019 (last updated 2 years ago)


Written by Dennis Smink

Dennis brings over 6 years of hands-on experience in server management, specializing in optimizing web services for scalability and security.

Back to Domains

Start free trial