• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Multiple TLD single website

O

OutKa5t

Guest
Hi,

is it possible to configure the following?

I would like one user account to have one hosting area but multiple TLD's i.e domain.NET, .CO.UK ,BIZ etc... of the same domain name so that there is only one website to update when changes are made to the website.

I dont really want to use forwarding/frame forwarding if I dont have to.

I am the admin of my server and I am running Plesk 7.5 on Fedora Core 2

Thanks in advance
 
Hey:

I'm pretty sure the only way to do it through the UI is to do it via forwarding (or frame forwarding). However, Plesk does have some ways for you to tweak Apache directly (if you are the server admin).

Disclaimer:

The correct way to do it is with the forwarding functionality within PSA. Following the steps below could cause unexpected behavior if the domain you want to alias to an existing Plesk domain is later added via Plesk. (Basically, whichever one shows up first as Apache parses the config file will be the virtual host container that returns the content).

With all of that being said, you can override Apache directives for a virtual host, if you have root access to the box, by creating the file vhost.conf (or vhost_ssl.conf if you want to override the SSL virtual host container for the domain). This file goes in /home/httpd/vhosts/<domain>/conf.

For example, if I have a domain data393demo.com, and I want .biz and .it to pull the site up too, I could create vhost.conf and place it in /home/httpd/vhosts/data393demo.com/conf. This file would contain the following:

ServerAlias www.data393demo.com www.data393demo.biz www.data393demo.it

I would save the file and run the following on the command line:

[root@psa75 conf]# /usr/local/psa/admin/bin/websrvmng -v -a
[root@psa75 conf]#

The above command will place the following into the httpd.include file if the vhost.conf file exists for that domain:

...
ErrorDocument 403 /error_docs/forbidden.html
ErrorDocument 404 /error_docs/not_found.html
ErrorDocument 500 /error_docs/internal_server_error.html
Include /home/httpd/vhosts/data393demo.com/conf/vhost.conf
</VirtualHost>

Therefore, you can override any directive above the include line by placing properly formatted directives in the vhost.conf file. Be sure to test everything after you make this kind of change, and be sure that you do not mistype any directives as Apache will not restart.

Once again, I would recommend that you use forwarding, but if you really, really want to do it another way, this is one way you could go about doing it.

Good hunting...

Steve
 
many thanks. I will use forwarding where possible but at least now I have a back up option.

Dave
 
The problem with forwarding domains in Plesk is 2 fold.

1. It uses up resources like the doman count, so if you have a limit license with like 30 or 100 domains you'll quickly use those with the aliases domains.

2. Forwarding a domain doesn't deal with email. Unless you want to set up email forwarding rules for every account. That's a P.I.A.!!!!


Personally I'm a fan of Total Domains from 4PSA. I've used it on a number of servers and it works for just this problem.
 
If you don't want to spend the money, then you could do it all manually, by editing the httpd files and qmail control files. But then you'd have to remember what you did manually and gets to be a headache. The 4PSA Total Domains product does the Domain 'parking' or what we call true Aliasing, and does it well.
 
Back
Top