mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
WebServer: Implement a very basic HTTP server :^)
This server listens on port 8000 and serves HTML files from /www. It's very simple and quite naive, but I think we can start here and build our way to something pretty neat. Work towards #792.
This commit is contained in:
parent
271bc4b2f2
commit
6c752c15a2
8 changed files with 198 additions and 1 deletions
|
@ -148,6 +148,7 @@ cp ../Servers/AudioServer/AudioServer mnt/bin/AudioServer
|
|||
cp ../Servers/TTYServer/TTYServer mnt/bin/TTYServer
|
||||
cp ../Servers/TelnetServer/TelnetServer mnt/bin/TelnetServer
|
||||
cp ../Servers/ProtocolServer/ProtocolServer mnt/bin/ProtocolServer
|
||||
cp ../Servers/WebServer/WebServer mnt/bin/WebServer
|
||||
cp ../Shell/Shell mnt/bin/Shell
|
||||
cp ../MenuApplets/Audio/Audio.MenuApplet mnt/bin/
|
||||
cp ../MenuApplets/CPUGraph/CPUGraph.MenuApplet mnt/bin/
|
||||
|
@ -185,6 +186,7 @@ ln -s Browser mnt/bin/br
|
|||
ln -s HackStudio mnt/bin/hs
|
||||
ln -s SystemMonitor mnt/bin/sm
|
||||
ln -s ProfileViewer mnt/bin/pv
|
||||
ln -s WebServer mnt/bin/ws
|
||||
echo "done"
|
||||
|
||||
mkdir -p mnt/boot/
|
||||
|
|
|
@ -111,7 +111,7 @@ else
|
|||
$SERENITY_COMMON_QEMU_ARGS \
|
||||
$SERENITY_KVM_ARG \
|
||||
$SERENITY_PACKET_LOGGING_ARG \
|
||||
-netdev user,id=breh,hostfwd=tcp:127.0.0.1:8888-10.0.2.15:8888,hostfwd=tcp:127.0.0.1:8823-10.0.2.15:23 \
|
||||
-netdev user,id=breh,hostfwd=tcp:127.0.0.1:8888-10.0.2.15:8888,hostfwd=tcp:127.0.0.1:8823-10.0.2.15:23,hostfwd=tcp:127.0.0.1:8000-10.0.2.15:8000 \
|
||||
-device e1000,netdev=breh \
|
||||
-kernel kernel \
|
||||
-append "${SERENITY_KERNEL_CMDLINE}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue