Virtualmin/Webmin web got 403 when accessing from AWS EC2

SYSTEM INFORMATION
OS type and version Ubuntu 22.04.4 LTS
Webmin version 2.20.2
Virtualmin version 7.20.2

Hi so i got 2 VPS

First VPS, its running Virtualmin & Webmin, I proxied the virtualmin into panel.domain.com, i can access the panel as usual, but.

Second VPS (AWS EC2), cant access the virtualmin from panel.domain.com, its always return 403. I need to access the panel for remote server

Why I got 403 when I accessing the panel from AWS EC2?, I need the access since I’m using remote server to access the First VPS, and Second VPS used as hosting manager


It can be accessed from my browser

But got 403 if accessed from AWS

You expect Webmin to respond to unauthenticated requests? (You should not expect Webmin to respond to unauthenticated requests. 403 is “forbidden”, which is exactly what you should expect to see for an unauthenticated request.)

Hi, i’ve authenticate too using params like the example in the docs, its work on other VPS, but in AWS its not working, even I tested for it to just request into the login page, still 403 on AWS, but fine on other VPS


AWS VPS (top)
Other VPS (bottom)

Hmm, well you’ll need to look at the logs to see what’s going on. Both the proxying web server and Webmin.