web server
A program that listens for web requests on a port and sends back responses.
In more detail
It turns each request into a response, either by serving a file or by handing the request to application code. It can be a separate program such as nginx or a library running inside the application process. Development servers usually run on your own machine at localhost.
Examples
return HTTPServer(("127.0.0.1", port), Handler) # the good variant ships its own serverThe course runs localCGIServer.py so CGI scripts work without a hosting account.Related terms
- port binding — An app offering its service by listening on a network port itself, with its own web server built in.
- application server — A long-running server, such as Apache Tomcat, that applications are deployed into as modules rather than running on their own.
- library — A package of reusable code that other programs include and call, rather than a program you run on its own.
- localhost — The name a machine uses for itself; traffic sent there never leaves that machine.
- port — A number from 1 to 65535 that picks out one service on a machine, such as 22 for SSH or 80 for plain web traffic.
- CGI — The Common Gateway Interface, an old standard for a web server to run a program for each request and send the program's printed output back as the page.
- HTTP — The protocol web browsers and web servers use to send requests and responses.
Taught in
- Port Binding And Concurrency — DevOps & Site Reliability Engineering
- Disposability, Dev Prod Parity And Logs — DevOps & Site Reliability Engineering
- Installing Python On Linux — Hands-on Python: Complete Video Course & Book
- Your Python Folder And A First Program — Hands-on Python: Complete Video Course & Book
- How A Web Page Reaches You — Hands-on Python: Complete Video Course & Book
- CGI: Dynamic Web Pages — Hands-on Python: Complete Video Course & Book
- Chapter Four In One Sitting — Hands-on Python: Complete Video Course & Book
- Windows And Mac Specifics — Hands-on Python: Complete Video Course & Book