Ubuntu 20.04 - Single public IP, NAT to internal private IP.
Remotely.one is a RMM tool that runs on Nginx web server.
Virtualmin works fine, but since installing Virtualmin, Remotely.one no longer works.
Nginx Conf files, slightly edited.
remotely.domain.co.conf -
server {
server_name remotely.domain.co *.remotely.domain.co;
location / {
proxy_pass http://localhost:5000;
proxyhttpversion 1.1;
proxysetheader Upgrade $http_upgrade;
proxysetheader Connection keep-alive;
proxysetheader Host $host;
proxycachebypass $http_upgrade;
proxysetheader X-Forwarded-For $proxyaddxforwardedfor;
proxysetheader X-Forwarded-Proto $scheme;
}
location /BrowserHub {
proxy_pass http://localhost:5000;
proxyhttpversion 1.1;
proxysetheader Upgrade $http_upgrade;
proxysetheader Connection āupgradeā;
proxysetheader Host $host;
proxycachebypass $http_upgrade;
proxysetheader X-Forwarded-For $proxyaddxforwardedfor;
proxysetheader X-Forwarded-Proto $scheme;
}
location /AgentHub {
proxy_pass http://localhost:5000;
proxyhttpversion 1.1;
proxysetheader Upgrade $http_upgrade;
proxysetheader Connection āupgradeā;
proxysetheader Host $host;
proxycachebypass $http_upgrade;
proxysetheader X-Forwarded-For $proxyaddxforwardedfor;
proxysetheader X-Forwarded-Proto $scheme;
}
location /ViewerHub {
proxy_pass http://localhost:5000;
proxyhttpversion 1.1;
proxysetheader Upgrade $http_upgrade;
proxysetheader Connection āupgradeā;
proxysetheader Host $host;
proxycachebypass $http_upgrade;
proxysetheader X-Forwarded-For $proxyaddxforwardedfor;
proxysetheader X-Forwarded-Proto $scheme;
}
location /CasterHub {
proxy_pass http://localhost:5000;
proxyhttpversion 1.1;
proxysetheader Upgrade $http_upgrade;
proxysetheader Connection āupgradeā;
proxysetheader Host $host;
proxycachebypass $http_upgrade;
proxysetheader X-Forwarded-For $proxyaddxforwardedfor;
proxysetheader X-Forwarded-Proto $scheme;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/remotely.domain.co/fullchain.pem; # managed by Certbot
sslcertificatekey /etc/letsencrypt/live/remotely.domain.co/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = remotely.domain.co) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name remotely.domain.co *.remotely.domain.co;
return 404; # managed by Certbot
}
server.domain.co.conf -
server {
server_name domain.co www.domain.co;
listen 192.168.124.1;
root /home/domain/public_html;
index index.php index.htm index.html;
accesslog /var/log/virtualmin/domain.coaccess_log;
errorlog /var/log/virtualmin/domain.coerror_log;
fastcgiparam GATEWAYINTERFACE CGI/1.1;
fastcgiparam SERVERSOFTWARE nginx;
fastcgiparam QUERYSTRING $query_string;
fastcgiparam REQUESTMETHOD $request_method;
fastcgiparam CONTENTTYPE $content_type;
fastcgiparam CONTENTLENGTH $content_length;
fastcgiparam SCRIPTFILENAME /home/domain/publichtml$fastcgiscript_name;
fastcgiparam SCRIPTNAME $fastcgiscriptname;
fastcgiparam REQUESTURI $request_uri;
fastcgiparam DOCUMENTURI $document_uri;
fastcgiparam DOCUMENTROOT /home/domain/public_html;
fastcgiparam SERVERPROTOCOL $server_protocol;
fastcgiparam REMOTEADDR $remote_addr;
fastcgiparam REMOTEPORT $remote_port;
fastcgiparam SERVERADDR $server_addr;
fastcgiparam SERVERPORT $server_port;
fastcgiparam SERVERNAME $server_name;
fastcgiparam PATHINFO $fastcgipathinfo;
fastcgi_param HTTPS $https;
location ~ \.php(/|$) {
tryfiles $uri $fastcgiscript_name =404;
fastcgi_pass unix:/var/php-nginx/161755519879131.sock/socket;
}
fastcgisplitpath_info ^(.+\.php)(/.+)$;
listen 192.168.124.1:443 ssl;
ssl_certificate /home/domain/ssl.combined;
sslcertificatekey /home/domain/ssl.key;
fastcgireadtimeout 60;
}
Any ideas?