• 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!
  • 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 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