Switching To Standard Web Ports
From SolusVM
Many people would probably rather have SolusVM running on the standard web browsing, which is port 80 for http and 443 for https. This way people behind firewalls that are blocking non normal web browsing ports, like the ports SolusVM use, can still access the control panel. For this to work you need to first make sure that you don't have any other web servers running on the node, such as Apache. If they are running then SolusVM won't be able to bind to the ports it needs.
First you need to backup your lighttpd configuration file, in case you encounter any issues in the future.
cp /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.bak
Now, open up the lighttpd.conf file with a text editor to configure lighttpd
nano /etc/lighttpd/lighttpd.conf
Go down to the bottom of the file and look for this section
server.port = 5656
server.pid-file = "/var/run/lighttpd.pid"
server.username = "solusvm"
server.groupname = "solusvm"
$SERVER["socket"] == "0.0.0.0:5656" {
ssl.engine = "enable"
ssl.pemfile = "/usr/local/solusvm/ssl/cert.pem"
}
You need to edit it so that it resembles this
server.port = 80
server.pid-file = "/var/run/lighttpd.pid"
server.username = "solusvm"
server.groupname = "solusvm"
$SERVER["socket"] == "0.0.0.0:443" {
ssl.engine = "enable"
ssl.pemfile = "/usr/local/solusvm/ssl/cert.pem"
}
And then at the bottom of the file, below the last entry, you need to add
$SERVER["socket"] == "0.0.0.0:5656" {
server.document-root = "/usr/local/solusvm/www/"
ssl.engine = "enable"
ssl.pemfile = "/usr/local/solusvm/ssl/cert.pem"
}
To ensure that SolusVM can still communicate properly with your nodes and run template syncs. Now all you need to do is restart lighttpd and you will be able to access it on standard web ports!
service lighttpd restart
You can now access your SolusVM control panel at
http://{IP_Address}/
https://{IP_Address}/
As well as the original
https://{IP_Address}:5656/
