How to set up your server for White Label

White Label Server settings

To allow White Labels on your Platform Edition, you must first make some settings on your server. If, when creating a CNAME, you are redirected to another page than your Siberian, that means you have to do the following settings in your server configuration. This happens because your platform is not the default website of your server.


Plesk

If you see the default page of Parallel Plesk when entering the CNAME in your browser, do the following:

  1. connect to your plesk panel
  2. click on the “Server” tab
  3. in Tools & Resources click on IP Adresses
  4. click the IP of your server (the IPV4 one, not the IPV6 if you have IPV6)
  5. for “Default site” choose your platform, and save
  6. enter the CNAME in your browser and that should be ok.


cPanel

Please note that the process below will require you have a dedicated server or a VPS, with root access:

If you see the “Sorry” page of cPanel when entering the CNAME in your browser, do the following:

  1. connect in SSH to your server
  2. find the httpd.conf file of apache (if you have cPanel installed, most of the time this file is in /usr/local/apache/conf/)
  3. edit this file
  4. Go down and find the entry related to your platform. It begins with <VirtualHost xx.xx.xx.xx:80> and the ServerName is the address of your platform. Copy all this entry beginning by <VirtualHost xx.xx.xx.xx:80> and ending by </VirtualHost>, paste it in a text editor.
  5. connect to your WHM panel
  6. in the left menu, click on “Service configuration” then “Apache configuration” then on “Include Editor”
  7. In the “Pre VirtualHost Include” part, select “All versions”
  8. Past the entry you just pasted in your text editor then click on the “Update” button.
  9. To finish, click on the “Restart Apache” button and wait until the Apache server has restarted.

That’s it.


VestaCP

Please note that the process below will require you have a dedicated server or a VPS, with root access:

  1. connect in SSH to your server
  2. Find vesta.conf (usually in /etc/httpd/conf.d/)
  3. Edit it
  4. Put the include line with your Siberian webspace, in the first position
  5. Reload apache


Other or no panel

Please note that the process below will require you have a dedicated server or a VPS, with root access:

You have to change the vhost configuration file on your server. You have to do the following:

  1. connect in SSH to your server
  2. find the httpd.conf file of apache (if you have cPanel installed, most of the time this file is in /usr/local/apache/conf/)
  3. edit this file
  4. go down in the file to find the first entry which matches the webspace in which your platform is installed as well as other websites. For instance you can have your platform and other websites installed in /home/www/mywebspace/, with your platform installed in /home/www/mywebspace/platform (these are exemples)
  5. The first entry which matches your webspace should be another website (actually it should be the one on which you are landing when entering your CNAME in your browser). This entry begins by <VirtualHost xx.xx.xx.xx:80> where “xx.xx.xx.xx” is the IP of your server, and it ends with </VirtualHost>. Below <VirtualHost xx.xx.xx.xx:80> you will see the ServerName which match the address of your default website.
  6. Go down and now find the entry related to your platform. It also begins with <VirtualHost xx.xx.xx.xx:80> but the ServerName is the address of your platform. Copy all this entry beginning by <VirtualHost xx.xx.xx.xx:80> and ending by </VirtualHost>, paste it in a text editor.
  7. Go back to your SSH console, and comment all the lines related to this entry (the entry for your platform) by adding a # before each line (<VirtualHost xx.xx.xx.xx:80> and </VirtualHost> included).
  8. Go up in the file to the first entry of your webspace, the one we have seen on point 5, above <VirtualHost xx.xx.xx.xx:80> of this entry paste the entry of your platform (the one you have pasted in a text editor).
  9. Save and exit
  10. Restart apache by entering “service httpd restart” or “service apache restart”, depending of your server, and it’s done.
  11. If you don’t know how to do it, contact us in a bug ticket and send us your ssh root access.


 

Note: If you can’t see it working in your web browser, that means you have cache in it. Flush your web browser’s cache or try with another web browser.

Was this article helpful?

Related Articles