Essential Services Flashcards
What’s the purpose of a server?
The purpose of a server is usually to provide services to clients (“to serve” others).
Which two types of clients do you know?
Clients and servers can be internal clients (in, e.g., a corporate network) or external (internet).
What does IP stand for?
Internet Protocol
What are Routers/Gateways used for?
Routers/Gateways are used to connect different networks in that they route packets originating from the source network to the destination network based on their destination IP address.
What are NAT Routers? What’s special about them?
NAT Routers, allow a single external IP address to be used by many private addresses.
Why are IPv4 addresses still in use?
A lot of devices still lack support for IPv6
How are the parts of IPv6 addresses separated?
By :
What does DNS stand for?
domain name system
What does the DNS do?
As IP addresses, consisting of several numbers, are hard to remember, the domain name system (DNS) has been put in place. Its purpose is the translation of names to IP addresses and back.
How does the communication between client and DNS server work?
The client queries the DNS server to resolve the name, that is it asks the DNS server for the IP address associated with a given name. The DNS servers responds with an IP address and the client can connect via this IP address.
How many ports are there per IP address?
65535 (different doors)
What are well-known ports?
Standardised ports, whose port number is associated with a known service. (service = server)
What’s the job of the web server?
The web server is used, as the name suggests, to serve web pages.
How are web pages requested and transferred?
With the HTTP protocol (hyper text transfer protocol)
Name a popular web server
Apache 2
What does SSL stand for?
secure socket layer
Name SSL libraries
OpenSSL or GnuTLS
Why is configuration split across multiple files?
For better separation
What are the most important configurations?
- ServerAdmin
Name (and e-mail address) of the server administrator - ServerName
Name of the server, usually fully qualified domain name (FQDN) - DocumentRoot
Where to look for documents to serve - SSLEngine
Enable/disable encryption (SSL)
What is a Virtual Host?
One Apache server can be configured to serve multiple domains and IP addresses. A Virtual Host is used to serve different domains or subdomains on the same IP address. Apache then decides upon connecting, based on the name, which virtual host has to respond (Name-based Virtual Hosts). Each Virtual Host can have its own set of Apache options defined.
How can you extend Apache’s functionality of a basic server?
By using modules
Name some Modules
- Server Sided Scripts (PHP, WSGI, CGI, …)
- Encryption Support (SSL)
- Database Access (MySQL, PostgreSQL, SQLite, …)
- File Serving Capabilities (WebDAV)
- Proxy Support
What is PHP?
A very powerful and common scripting language is PHP, the Hypertext Pre-Processor
How and where are PHP scripts executed?
All PHP scripts are executed on the server and can run directly within Apache using the PHP interpreter (provided as an Apache Module).