So I installed virtualmin on a arm ampere machine (4A 24gb ram 200gb ssd and it has primary and secondary external IP reserved). Then I struggled a bit with cloudflare until i found out solution of changing port from 10000 to 2096. So I created two virtual servers and gave each of them different external ip. And I routed my other domain in cloudflare to 2nd ip. and it doesnt work. I tried wordpress script just to test. I can open it through site preview as it uses internal ip but it doesnt work through my domain or external ip. I tried to add virtual interface in webmin’s network configuration with my secondary ip and it didn’t help.
arm is not supported. https://www.virtualmin.com/documentation/os-support/
It will install but you might get somethings will be broken. The forum has chat about it before.
Not sure why you would have a issue with port 10000 and cloudflare. I’ve got a WordPress site with cloudflare turned on and I can access for 10000.
I have one 1 IP and many WordPress sites.
If you want to use ARM you will have a headache and using cloundflare as well make things further complicated. Turn cloudflare on once you get things working first.
I changed port to 2096 so ssl will work. There is the list of allowed cloudflare ports for https. 10000 won’t work with https and cloudflare proxy. If I put only single virtual server and one wordpress website it will work like this: “example . com” will be wordpress and “server . example . com:2096” will be my virtualmin. the thing is I dont want to use “example . com” for any wordpress and only use it for virtualmin. I want other domains like “site1 . com” and “site2 . com” for wordpress websites and I have reserved ip for this but it just wont work. Also everything else is works. I even used the trick with procmail-wrapper.c to rebuild it and it works on arm. its not a problem with arm for sure. Something is wrong with networking but I dont know where is the problem (Virtualmin or cloudflare?)
Only mail will be broken on ARM, and only because procmail-wrapper isn’t built for ARM in our repos. Web hosting should be fine on ARM. But, if OP didn’t use the install script, they probably have a real messed up system that isn’t ready for virtual hosting. There are several discussions in the forum about it.
Why are you using a second IP? (To be clear, you can use multiple IPs in Virtualmin, but there is no reason to. Virtual name-based hosting is easy and doesn’t waste IP addresses.)
well i tried without different ip but it didnt work aswell. I’m using virtualmin with LEMP so its nginx. I dont know where is the problem. Let me tell you how it all started. In my first try this is what I did:
Installed virtualmin.
Opened virtualmin on port 10000 and strugled with https until found a solution with changing port to 2096
created two virtual servers with my two different domains
in cloudflare pointed a records for my both sites to the same external ip of my virtualmin
…
it didnt work. first virtual server after installing wordpress script wasn’t opening on the domain i intended to use but on the virtualmin domain without “:2096” and second virtual server didnt open anywhere except for website preview where it uses internal ip
After that I tried to troubleshoot this and couldn’t find a solution no matter what I do. As a last attempt to make it work I decided to use separate external ip addresses for virtual servers adn it didn’t work aswell. Now I don’t know what else to do to make it work
I just want to host two different wordpress sites with two different domains in my virtualmin and use cloudflare dns and proxy. I dont know why it doesn’t work. I hope that there are people that at least have some clue in what is wrong unlike me
Yeah. I changed from proxy to dns only in cloudflare buyt it didn’t help. I will try to use my registrars nameservers. Maybe it will help. But if I can’t use cloudflare proxy with virtualmin I will probably try to look for other solutions instead of virtualmin(((
No, now you need to start figuring out what’s wrong. Don’t keep changing things and adding more variables.
Is DNS right? Check it with host domain.tld from a system that isn’t your Virtualmin system (or nslookup if you’re not on Linux/Mac).
If DNS is right, what actually happens when you try to browse your two sites? If DNS is right, then you should see something in the logs on the Virtualmin server, which may provide useful information about why it is failing.
Also, I’m telling you not to change DNS servers because that takes time. When you change glue records, it can take hours for changes to propagate. Usually only a few minutes, but it doesn’t have to be that fast (depends on your registrar, your ISP, etc.). If you want to test/change/test fast, you don’t do it by fucking around with DNS over and over.
the look up shows different ip from my server as it should cuz its cloudflare’s proxy. I have many domains. In this setup im actually using 3. First is for virtualmin itself - tld1(open it with tld1:2096), and second and third for virtual servers(websites) - tld2 and tld3. there is nothing in logs when i try to reach my domains tld2 or tld3 for websites. only the tld1 that i open virtualmin with. And first virtual server I created and installed wordpress script first time didnt open website on tld2 that I wrote while creating this virtual server, but for some unknown reason it was opening on first domain. tld1 without “:2096” part. And I tried both ways with cloudflare records(proxy and dns only). So i’m definitely missing something here but I don’t know what. And didn’t do lot of staff since installing virtualmin so the problem should be easy to fix or unsolvable and I should move to other solutions. I don’t know
OMG. I just did everything from scratch and it’s now working as it should. I don’t know what is different this time from the last time. Everything was the same I think… Let’s hope I won’t break anything in next 24 hours))) I’ll post what was the problem first time if I will be able to find it out