first commit: echo server

This commit is contained in:
Antonio Cossari
2026-09-07 00:45:35 +02:00
commit b15ce130f9
47 changed files with 2614 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
<!doctype html>
<meta charset="utf-8">
<title>404 Not Found</title>
<h1>404 Not Found</h1>
<p>Configured error page.</p>
+5
View File
@@ -0,0 +1,5 @@
<!doctype html>
<meta charset="utf-8">
<title>Server error</title>
<h1>Server error</h1>
<p>Configured error page.</p>
+1
View File
@@ -0,0 +1 @@
A plain file, so /files/ has something to list.
+9
View File
@@ -0,0 +1,9 @@
<!doctype html>
<meta charset="utf-8">
<title>webserv</title>
<h1>webserv</h1>
<p>Static root served from <code>./www</code>.</p>
<ul>
<li><a href="/files/">/files/</a> — directory listing</li>
<li><a href="/old">/old</a> — 301 redirect</li>
</ul>
+5
View File
@@ -0,0 +1,5 @@
<!doctype html>
<meta charset="utf-8">
<title>webserv.local</title>
<h1>webserv.local</h1>
<p>Different server block, same interface and port. Picked by the Host header.</p>