|
|
2 jaren geleden | |
|---|---|---|
| .. | ||
| web | 2 jaren geleden | |
| Makefile | 2 jaren geleden | |
| README.md | 2 jaren geleden | |
| appweb.conf | 2 jaren geleden | |
| server.c | 2 jaren geleden | |
| start.me | 2 jaren geleden | |
This sample shows how to run Appweb in a Chroot-jail. This is where Appweb runs with enhanced security by changing its root directory so that the rest of the operating system is inaccessible.
make
sudo make run
The server listens on port 8080. Browse to:
http://localhost:8080/
http://localhost:8080/test.esp
Alternatively, run appweb to use the appweb.conf file.
sudo appweb
So that the Compiler is not required inside the jail, the ESP pages are pre-compiled before running Appweb. Appweb is configured to load modules before changing the root directory via the "Chroot" directive in appweb.conf.