Translation(s): English - French - Português (Brasil)
Installing a webserver
To install the default Debian web server environment under Debian, you should use tasksel, then select Web Server. If you wonder what's the content of that task, run tasksel --task-packages web-server (Of course, you need to have tasksel installed).
Choosing a web server
(you can easily get an up-to-date list of httpd packages).
Popularity Contest (2007-11) |
Comment |
|||||||
Name and version 1 |
size 2 |
inst |
vote |
old |
recent |
no-files |
||
apache2 2.4.54 |
cgi |
7.2M |
. |
. |
. |
. |
. |
|
caddy 2.6.2-4 (Bookworm) |
cgi |
36M |
. |
. |
. |
. |
. |
|
ebhttpd 1.1 (until oldstable) |
no-cgi |
238K |
1 |
0 |
1 |
0 |
0 |
|
lighttpd 1.4.59 |
cgi |
38M |
988 |
694 |
172 |
122 |
0 |
|
micro-httpd 20140814-2 |
no-cgi |
73K |
27 |
5 |
0 |
19 |
3 |
|
mini-httpd 1.30 |
cgi |
123K |
31 |
8 |
17 |
6 |
0 |
|
nginx 1.18.0 |
cgi |
6M |
266 |
144 |
101 |
19 |
2 |
Good load-balancer |
tntnet 2.2.1 |
cgi |
1.5M |
10 |
7 |
2 |
1 |
0 |
|
webfs 1.21 |
no-cgi |
127K |
69 |
40 |
24 |
5 |
0 |
|
yaws 2.0.8 |
cgi |
51M |
. |
. |
. |
. |
. |
|
see also wikipedia's Comparison_of_web_servers
Python's http.server Module
For a simple and quick means of serving files over HTTP, the Python http.server module can be used. The following command serves the current working directory over HTTP:
~$ python3 -m http.server
Note the following warning from the official Python documentation:
Warning: http.server is not recommended for production. It only implements basic security checks.
External Links
CategoryNetwork CategorySoftware CategorySystemAdministration