• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

One site on 2 IP's?

keff

Basic Pleskian
Hi,

it is possible to get working One site on two IP's in Plesk? If it is how do I do this?
 
Hi,

One site? One domain? Whats the use case?

If its one site, two domains then the technique we use on 8 and 9 is to create the one domain (the primary) and put all the data on this one, then create the 2nd site and point it to the first using a vhost.conf (and vhost_ssl.conf) that sets the document root to the primary domain. We use mod_php so our vhost.conf would be :

]
DocumentRoot /var/www/vhosts/primary_domain/httpdocs
<Directory /var/www/vhosts/primary_domain/httpdocs>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/tmp:/var/www/vhosts/primary_domain/httpdocs"
</Directory>

You'd need a different configuration for fastCGI, but this technique should work fine on Plesk 10.

Paul
 
I mean one domain on two IP's. Such as in apache:
Name VirtualHost IP1
Name VirtualHost IP2
<VirtualHost IP1, IP2>.

Thats my problem.
 
Hi,
We're getting a little beyond my knowledge but I think thats impossible even outside of Plesk, since the vhost name is what defines it uniquely.

Why are you wanting to do this?

Paul.
 
The apache manual says:

Serving the same content on different IP addresses (such as an internal and external address).

The server machine has two IP addresses (192.168.1.1 and 172.20.30.40). The machine is sitting between an internal (intranet) network and an external (internet) network. Outside of the network, the name server.example.com resolves to the external address (172.20.30.40), but inside the network, that same name resolves to the internal address (192.168.1.1).

The server can be made to respond to internal and external requests with the same content, with just one VirtualHost section.

Server configuration

NameVirtualHost 192.168.1.1
NameVirtualHost 172.20.30.40

<VirtualHost 192.168.1.1 172.20.30.40>
DocumentRoot /www/server1
ServerName server.example.com
ServerAlias server
</VirtualHost>
Now requests from both networks will be served from the same VirtualHost.

I know this is specific configuration, for internal and external network, but I think i can be run for two external IP's.
 
Back
Top