Login
or
register
Overview
Overview
Why Lua?
Vision
Uses
Modules
General FAQ
Credits
License
Getting Started
Installation
Hello World
Databases
Web Servers
More Examples
Reference
FAQ
Getting Help
Status
News
Road Map
Releases
Site Edits
Community
Overview
Architecture
Detailed Road Map
Source
Builds
Bugs
FAQ
Dev Team
Mailing List
Hello World
Anonymous users must enter
captcha
below.
Don't put anything here
Don't put anything here
Page Parameters
Page Name (for URL)
Page Title
Show Advanced Options
Category
Prototype
Don't put anything here
Page Content
Don't put anything here
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: <pre> xavante.HTTP{ server = {host = "*", port = 8080}, defaultHost = { rules = simplerules }, } </pre> 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.
Don't put anything here
About this Edit
Minor Edit
Edit Summary
Don't put anything here
Powered by
Sputnik
|
XHTML 1.1