a framework to make building website more easily
## JuliaWebServer : a webserver for julia Base on juliasee the sub directory "example" .
- open the file
julia_webserver_base.jl
- change LIB_PATH point to the juliawebserver framework path, like
/home/cheney/juliawebserver
(if you copy juliawebserver to julia's directory. you can set it./juliawebserver
) cd example
julia main.jl
- wait for a moment and it will display the port , default 4444
- now you can browse
http://localhost:4444
All the page must use UTF-8 encoding.
- send status: you can send the http status code like "404", "200" etc.
- get argument: get the POST argument and auto use URLDecode,support Chinese
- set/get cookie now support.
- template support template(extend, for, if).
- support asynchronous
-
cd /etc/nginx/sites-available/
-
sudo nano default
(you can choose other file)server {
listen 80; server_name julia; index index.html index.htm; location / { proxy_pass http://127.0.0.1:4444; proxy_set_header Host $host; }
}