• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Virtual hosts in Apache

Phil Wareham

New Pleskian
Hi,

I'm trying to setup a virtual host in Apache HTTPD on a server with
Plesk installed. I want to forward requests for a specific host to
Tomcat running on port 10000. I could not see a way to do this from
within Plesk, so I added a file to the /etc/httpd/conf.d directory. The
file has a .conf extension, and contains an entry like the following:

<VirtualHost *:80>
ServerName foo.bar.com
ProxyPass / http://foo.bar.com:10000/storefinder/
ProxyPassReverse / http://foo.bar.com:10000/storefinder/
</VirtualHost>

However, on restarting HTTPD, I get a server default page with the Plesk
logo on it.

Does anyone know why HTTPD is not honouring my virtual host
configuration - perhaps it is conflicting with Plesk?

Cheers,
Phil
 
Back
Top