• 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!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • 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.

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