REMOTE CONTROL

MyServer allows you to manage its configuration remotely, via your Control Center application, from anywhere in the world. You just need to enable the Control Protocol.

For this, you have to add a virtual host that will use the Control Protocol. You can do this modifying the virtualhosts.xml file, so it looks like this:

<VHOST>
<NAME>Every control connection</NAME>
<PORT>270</PORT>
<SSL_PRIVATEKEY>certificates/server.key</SSL_PRIVATEKEY>  
<SSL_CERTIFICATE>certificates/server.pem</SSL_CERTIFICATE >  
<PROTOCOL>CONTROL</PROTOCOL>
<DOCROOT></DOCROOT>
<SYSFOLDER></SYSFOLDER>
<ACCESSLOG>logs/control.log</ACCESSLOG>
<WARNINGLOG>logs/control.err</WARNINGLOG>
</VHOST> 

The line <PORT>270</PORT> describes the port to be used for the access to the Remote Control. In the above example, you could access your webserver's Remote Control via the GUI connecting to localhost on port 270

Please note that certificates/server.key and certificates/server.pem need to be created before use them. Refer to how create SSL keys for more information about.

You also need to modify myserver.xml to set a password for the administration, adding the following lines:

<CONTROL_ENABLED>YES</CONTROL_ENABLED> 
<CONTROL_ADMIN>ADMIN</CONTROL_ADMIN> 
<CONTROL_PASSWORD>PASSWORD</CONTROL_PASSWORD> 

Just change the value of ADMIN and PASSWORD to fit your admin's username and password, and remember to use YES in the CONTROL_ENABLED parameter (otherwise, you will not be able to use the Remote Control center.)

Also define a name and a password for the administrator, better if you don't use simple words like admin or password.