Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: ProxyPass - How to reduce the amount of virtual hosts |
|
Author |
|
MofaBertram
Joined: 30 Dec 2024 Posts: 1
|
Posted: Mon 30 Dec '24 22:52 Post subject: ProxyPass - How to reduce the amount of virtual hosts |
|
|
Hi!
I'm running an Apache as a reverse proxy for several Tomcat backends. There's no load ballancing. Each name based virtual host serves one Tomcat via ProxyPass/mod_jk. Since I want to setup a new linux machine I realzied that I'm currently running 30 virtual hosts and because I also want to serve https on the new one the amount of virtual hosts doubles.
So I started to look for another setup where I could reduce the ammount of virtual hosts. I looked for a setup where I can serve all backends with 2 virtual hosts only but the decision for the correct backend still must be made on the virtual host servername. One for http and one for https. My first attempt was to try if-conditions on the servernames but ProxyPass directives are not allowed within if-conditions.
Then I looked for other config setups but honestly I did not found one.
Does anyone have a tip?
Regards |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7381 Location: Germany, Next to Hamburg
|
|
Back to top |
|
|
|
|
|
|