Web Services Flashcards
LPIC-2 Web services, including Apache, Nginx and Squid
What do HTTP and HTTPS stand for?
HyperText transfer protocol and Secure HTTP
What does HTML stand for?
HyperText Markup Language
HTTP status codes have the format 1xx, 2xx, 3xx, 4xx, 5xx - what types of messages do these number represent?
1xx - Informational messages 2xx - Success 3xx - Redirection 4xx - Client Error 5xx - Server Error
What does SSL stand for?
Secure Sockets Layer
What does TLS stand for and what is it?
TLS is Transport Layer security, it is the security layer applied to web traffic, the successor to SSL.
Which port numbers do these services usually run on:
Web server (HTTP)
Secure Web server (HTTPS)
Squid Proxy Server
HTTP - 80
HTTPS - 443
Squid - 138
There are a number of web service options available, which 3 web services does LPIC-2 focus on? Which is the most popular in Linux today?
Apache - Web Server (most popular)
Nginx - Web Server
Squid - Web Proxy Server
Name some of the core features of the Apache web server
Loadable dynamic modules (that can be activated/deactivated on the fly) Scalable Multi-Session Support Limiting concurrent connections Bandwidth Throttling Web Caching (web proxy) Load Balancing (reverse Proxy) Common Gateway Interface (CGI) support Virtual Hosting User-Based Web Page Hosting
In Web Hosting, what does CGI stand for? What does it do?
Common Gateway Interface. It allows programs to be run that can generate dynamic web content.
What are the two main functions of the squid proxy server?
Web filtering and web caching
What is nginx?
Nginx is a web server that is gaining popularity. It can act as either a web server or as a reverse proxy server that performs load balancing
Where are Apache web documents generally stored?
/var/www/html/
Which Apache utility allows you to control (stop, start, restart, status) the Apache service?
apachectl
Unfortunately the configuration file location for Apache are not standard across distros. Which 2 places would you check on Debian based distros, which 2 places on Redhat based distros.
Debian: /etc/apache2.conf /etc/apache2/apache2.conf Redhat: /etc/httpd/httpd.conf /etc/httpd/httpd2.conf
Name the Apache directive that allows you to specify a port number to listen on and an optional IP address.
Listen
Name the Apache directive that specifies the user account which should be used to start the service
User
Name the Apache directive that allows you to specify a group for the Apache daemon service
Group
Name the Apache directive that allows you to specify an email address for the Apache server administrator
ServerAdmin
Name the Apache directive that allows you to specify a name for the Web server
ServerName
Name the Apache directive that allows you to specify the base directory for the configuration files
ServerRoot
Name the Apache directive that allows you to specify the base directory for the data files
DocumentRoot
Name the Apache directive that allows you to specify a default file served when a client requests an index of a directory
DirectoryIndex
Name the Apache directive that allows you to specify a file to serve when an error occurs
ErrorDocument
Name the Apache directive that allows you to specify the log file location
ErrorLog
Name the Apache directive that allows you to specify a file that lists restrictions on files in a folder
AccessFileName
Name the Apache directive that allows you to specify another file to include in the configuration
Include
Name the Apache directive that allows you to specify the number of servers to start to handle concurrent requests
StartServers
Name the Apache directive that allows you to specify the maximum number of servers to handle concurrent requests
MaxClients
Name the Apache directive that allows you to specify the minimum number of spare servers to have running
MinSpareServers
Name the Apache directive that allows you to specify the maximum number of spare servers to have running
MaxSpareServers
Name the Apache directive that allows you to load and enable special feature modules on the server
LoadModule
What does an Apache conditional BLOCK directive look like?
directives
What does an Apache conditional MODULE directive look like?
directives
What does an Apache conditional DIRECTORY directive look like?
directives
What are the two types of Apache logs?
Access logs and Error Logs
The location of the Apache Error logs can be different on Debian based distros to that on Redhat based distros. What are the likely locations and files names on each?
Debian:
/var/log/apache2/error.log
Redhat:
/var/log/httpd/error_log