How to create a domain/subdomain/alias using different methods in Plesk

Follow

Comments

4 comments

  • Avatar
    Glenn

    Is there a way to create a domain alias and assign it to a different IP address?

    0
    Comment actions Permalink
  • Avatar
    Julian Bonpland Mignaquy

    Hi Glenn could you specify what is the purpose of assigning a different IP to a domain alias?

    0
    Comment actions Permalink
  • Avatar
    Glenn

    Client has newer version of their application and wants to move some subdomains and aliases to the new app but on a different IP while keep some subdomains/aliases on the old application on the old IP.

    We can use htaccess:

    RewriteCond %{HTTP_HOST} ^tester.abc\.com [NC]
    RewriteRule (.*) https://192.168.10.25/$1 [R=301,L]

    Not sure how good of a solution this is.

    0
    Comment actions Permalink
  • Avatar
    Anton Maslov

    Hi Glenn: domain alias always uses the same IP as a main domain under subscription. Here is what you need to do:

    1. Create new subscription on new IP where you will create subdomains and aliases on this IP.

    2. Now you can forward by any means: using .htaccess using "forwarding" in Plesk UI instead of alias.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request