• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Domain Alias Rewrite

A

AlexDB

Guest
Hi,

We have a domain setup with a couple of aliases for other domains pointing to the same hosting space.

Now on our previous server which was run without a control panel it was easy enough to enable the domain url rewriting to the main domain for all the aliases.

This was done by just setting the servername as the primary domain in the vhost conf and adding all the other domains as server aliases, however on plesk it doens't seem to work like this and instead choses to display the domain of the one used to access the site instead of the primary domain.

Is there any way to change this behaviour, or do I need to modify the conf files manually?
 
If you have SSH access to the server, you should be able to manually do the same thing you did before.... create or modify the vhost.conf(s) and put the mod_rewrite code there, then restart Apache. This will take care of the website(s). Then if you want the emails for the additional domains to go to the same user's in the main domain, you will have to modify the Qmail control files (not sure if you want/need the emails too, or just the sites).
 
Back
Top