• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

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