• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

IP address domain aliases

A

adent

Guest
Is it possible to set up a domain alias using an IP address?

The domain alias tool will not allow it.

We want URLs that contain the dedicated IP address to resolve to the correct site; currently, when http://1.2.3.4 is entered, the default plesk site is served.

Any help would be greatly appreciated.
 
You will need to use Apache rewrite rules in order to do that (301 redirect would probably make the most sense here).

Google is your friend.
 
Thanks for the tip.

For anyone interested, here is the content of the .htaccess file doing the rewriting:

RewriteEngine on

RewriteCond %{HTTP_HOST} ^1\.2\.3\.4

RewriteRule ^(.*)$ http://your.tld/$1 [R=301,L]
 
Back
Top