Login or register Large RSS Icon

Hello World

If you do not have your server running or installed, please visit Installation first.

At this point, you can see your server running by visiting http://localhost:8080/ The :8080 part tells the browser to use port 8080 instead of the default which is 80. If you would like to change this open /usr/local/etc/kepler/1.1/xavante/config.lua

nano /usr/local/etc/kepler/1.1/xavante/config.lua

Towards the end of the file, you will see:

xavante.HTTP{
    server = {host = "*", port = 8080},

    defaultHost = {
        rules = simplerules
    },
}

Change the port to 80 and save the file. To make the changes you will need to restart the server. To do this, find the terminal that you started the server with and press ctrl+c until you get back to the command line. Rerun the command which you used to start the server initially. You can test to make sure that this worked by attempting to visit http://localhost/ Notice that now you do need to put :8080 or :80 at the end. This is because port 80 is the default port for most http web servers.

Changing the contents of your server:

Note: By default, the server's root directory is going to be /usr/local/htdocs. this can be changed in the file /usr/local/etc/kepler/1.1/kepler_init.lua if you have a location you would rather use as a root directory.

Now, when you visit http://localhost/ you do get a web page. This happened without explicitly providing a file on localhost that you wanted to see. When you do not specify which file in a directory that you would like to see, in this case the root directory, the server will start trying to find some default files in that directory and show those. In this case, it is finding index.lp. Try editing this file:

cd /usr/local/htdocs
nano index.lp

You should notice the contents of http://localhost/ change as you edit and save.

Powered by Sputnik | XHTML 1.1