Page tree
Skip to end of metadata
Go to start of metadata

This method will not work if you have any other services running on standard web ports, such as Apache, as SolusVM will be unable to bind to the needed ports.

Many users prefer to have SolusVM running on the standard web browsing ports such as port 80 for http and 443 for https. This enables users behind firewalls that block non-standard ports, like the ports SolusVM uses, to access the control panel.

1. Backup the lighttpd configuration file in case of process failure:

cp /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.bak

2. Open the lighttpd configuration file in the editor:

nano /etc/lighttpd/lighttpd.conf

3. Scroll to the bottom of the file to find the server section. It will look the following way:

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"
 }

4. Change the following sections to reflect the new ports (note the port changes):

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"
 }

5. Add the section below to the END of your lighttpd.conf file to ensure your SolusVM Master can still communicate with your slave nodes:

$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"
}

6. Save your new lighttpd.conf file and then restart lighttpd to access it on standard ports:

service lighttpd restart

You can now access your SolusVM Control panel using standard web ports:http://[ip_address]/ and https://[ip_address]/. You will still be able to access the original port too https://[ip_address]:5656/

 

 

  • No labels