BASIC SERVER CONFIGURATION

In the myserver.xml file you can set the default page for your websites hosted in MyServer.

Similar lines already exist in your configuration file:

<DEFAULT_FILENAME>default.htm</DEFAULT_FILENAME>
    <DEFAULT_FILENAME>default.php</DEFAULT_FILENAME>
    <DEFAULT_FILENAME>default.php3</DEFAULT_FILENAME>
    <DEFAULT_FILENAME>index.htm</DEFAULT_FILENAME>
    <DEFAULT_FILENAME>index.php</DEFAULT_FILENAME>
    <DEFAULT_FILENAME>index.php3</DEFAULT_FILENAME>
    <DEFAULT_FILENAME>default.htm</DEFAULT_FILENAME>


So, if you have a Virtual Host http://mypc.net, the page that will appear when accessing that address on the browser, will be one of the files above. The first file in order that exists will be used. You can add more lines or change any of them, if you need a different filename. The same mechanism is used for every directory and not only with the root one.


In the errors section you learned how to create and use your own error pages. But you can also disable the custom error pages, by changing the line below:
<USE_ERROR_FILE>YES</USE_ERROR_FILE>
So, if you set the value to NO, like in the line below,
<USE_ERROR_FILE>NO</USE_ERROR_FILE>
MyServer will (by default) just send a header to your browser with the error code. But you have the option to send a HTTP body included in the error, by adding this line:
<ERRORS_INCLUDE_BODY>YES</ERRORS_INCLUDE_BODY>

You can change the layout of the directory browsing page (used when you don't have a default page, as described in the Browse directory index section). The line below, in myserver.xml, points to the CSS file used to configure the layout for the browsing directory pages:
<BROWSEFOLDER_CSS>system/folderstyle.css</BROWSEFOLDER_CSS>

CGI Scripts can get the Server Administrator E-mail and show them to the user (through the SERVER_ADMIN environment variable). So, it can be important you define this address properly, by setting the value in the line below, in myserver.xml:
<SERVER_ADMIN>administrator@localhost</SERVER_ADMIN>

MyServer offers the feature to follow symlinks on Unix-like Operating systems (e.g.: Linux, *BSD, GNU/HURD, Solaris, etc.).
You can add the symlink following feature for all hosts in the myserver.xml file.
<FOLLOW_LINKS>YES</FOLLOW_LINKS>

The default is: <FOLLOW_LINKS>NO</FOLLOW_LINKS> This value is used by default by MyServer.