SYSTEM INFORMATION | |
---|---|
OS type and version | Ubuntu 22.04 |
Webmin version | 2.111 |
Virtualmin version | 7.10.0 |
Related packages | SUGGESTED |
Hello!
I’m hosting e.g. domain. com on my VPS using Virtualmin.
I have a game panel on the same VPS. The game panel has a GUI that listen to port 8080.
How can I setup nginx in order to go to IP:8080 whenever I go for panel. domain.com?
I tried to add the following but I’m seeing the same default page I have on domain.com:
#/etc/nginx/conf.d/panel. domain.com.conf
server {
server_name panel. domain.com;
client_max_body_size 100M;
proxy_request_buffering off;
proxy_buffering off;
proxy_pass_request_body on;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header X-AMP-Scheme $scheme;
Space typo on domain name as I can’t post with more than 2 urls.