• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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 domain listening on multiple IP addresses

P

phazei

Guest
We have a few servers, and we want another server to be able to access our plesk server through an internal IP address rather than the external, so the virtual host needs to listen on two ports.

Now normally I'd simple go:
<VirtualHost 216.xxx.xxx.123:80 192.xxx.xxx.123:80>
In the site.com/conf/httpd.include file... but I'm not supposed to modify that or it will be rewritten when plesk reconfigures.

So how can I add a second IP to the virtual host that is already defined?
I was thinking maybe something like this:
<VirtualHost 192.xxx.xxx.123:80>
ProxyPreserveHost On
ProxyPass / http://site.com/
ProxyPassReverse / http://site.com/
ServerName site.com
</VirtualHost>

But really I don't even know if that's right at all.

Help?

Thanks
 
bump?

Does anyone have a solution?

If I want to add some custom vhost info, like an additional virtualhost, what file would I add it to so it would be included? It seems vhosts.conf is included inside a virtualhost tag, so it can't be added there.

Any ideas?
 
Don't know about PBAs.

We have a dedicated server and I have full root access.
 
This worked for me:

Site in Plesk configured to listen to local IP 10.10.10.73
Public IP, 204.x.x.139

with mod_proxy and proxy_http enabled

Config file in /etc/apache2/conf.d/

<IfModule mod_proxy.c>
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
</IfModule>

<VirtualHost 204.x.x.139:80>
ServerName example.com:80
ServerAlias www.example.com
ProxyVia Off
ProxyPreserveHost On
ProxyPass / http://10.10.10.73/
</VirtualHost>
 
Back
Top