| SYSTEM INFORMATION | |
|---|---|
| OS type and version | Ubuntu 24.04.3 |
| Webmin version | 2.610 |
| Virtualmin version | 8.0.0 |
| Webserver version | 2.4.58 |
| Related packages | Apache |
Hi I tried to setup virtualmin behind Bunkerweb reverse proxy https works perfectly fine for the webmin/virtualmin backend but when I create a website and point the reverse proxy to port 80 I get 500 internal server error.
Curl command though from the same virtualmin server shows the website content.
I used this command: curl -v -H “Host: example.com” http://127.0.0.1/
If I go to the servers up adress and port I get the example page.
I did disable Apache SSL website because I thought that might cause an issue.
I also read there might be a too many redirects that could cause it or maybe missing headers, Auto redirect by virtualmin.
I have used virtualmin for a long time at my home network but mainly only with https via the proxy.
But it might only work at my home network and not my isp because at home i have a certain dns setup.
My VPS setup which has this issue is like this:
VPS1 - Bunkerweb WAF and Reverse Proxy
||
VPS2 - Virtualmin (isolated from the internet, only allowed to connect with vps1 and established connections to apt repos)
As for might be misconfigured reverse proxy I did disable all features to only use the reverse proxy no other features like crowd sec or anti bot stuff like that.
My home network is setup like this:
PFSENSE
||
BUNKERWEB
||
VIRTUALMIN
Domains point to the Pfsense firewall which also manages dns and dhcp.
DNS records for domains are set to the bunkerweb instances ip adress.
Bunkerweb points to the Virtualmin servers port 80.
In the past I also used to create virtual ip addresses in my network and added them to virtualmin then I had a unique ip for every website.
But the latest instance I ran had only one and it worked over https fine I haven’t tested http only.
To clarify ssl certificate is managed in every cenario by bunkerweb not virtualmin it’s self.
I am totally clueless what to do.
I would appreciate some advice and help.