1.
What is the default Apache port for HTTP?
Correct Answer
A. 80
Explanation
The default Apache port for HTTP is 80. This means that when a user types in a website address without specifying a port number, the browser will automatically connect to port 80 on the server. This port is commonly used for serving web pages and is the standard port for HTTP traffic.
2.
Which of the following has its port number as 443?
Correct Answer
B. HTTPS
Explanation
HTTPS stands for Hypertext Transfer Protocol Secure. It is the secure version of HTTP, the protocol used for transmitting data over the internet. HTTPS uses port number 443 to establish a secure connection between a web server and a web browser. This secure connection ensures that the data being transmitted is encrypted and cannot be easily intercepted or tampered with by malicious actors. Therefore, the correct answer is HTTPS.
3.
How do I disable directory indexing?
Correct Answer
C. Options - Indexes
Explanation
The correct answer is "Options - Indexes". This is because the "Options" directive in Apache allows for the configuration of various options for a directory, including whether or not to enable directory indexing. By specifying "Indexes" after the "-" sign, it disables the directory indexing feature, preventing the server from displaying a list of files in a directory if there is no index file present.
4.
How many log files are generated by Apache?
Correct Answer
D. 2
Explanation
Apache generates two log files: access.log and error.log. The access.log file records all requests made to the server, while the error.log file records any errors or warnings encountered by the server. These log files are useful for troubleshooting and monitoring server activity.
5.
Which log files capture all the errors within apache or connecting in backend?
Correct Answer
A. Error.log
Explanation
The correct answer is error.log. This log file captures all the errors that occur within Apache or when connecting to the backend. It provides a record of any issues or failures that may have occurred during the operation of the Apache server or when communicating with the backend system. This log file is essential for troubleshooting and identifying any potential problems or issues that may be affecting the functionality of the server.
6.
What do you call the ability that allows Apache to host multiple websites on a single instance?
Correct Answer
B. Virtual Hosting
Explanation
Virtual Hosting refers to the ability of Apache to host multiple websites on a single instance. It allows different websites to share the same server resources while maintaining their separate domain names and content. This is achieved by using techniques such as name-based or IP-based virtual hosting, where the server can differentiate between multiple websites based on the requested domain name or IP address. With virtual hosting, Apache can efficiently handle multiple websites on a single server, making it a cost-effective and scalable solution for hosting providers and website owners.
7.
When module is required to enable SSL?
Correct Answer
C. Mod_ssl
Explanation
Mod_ssl is the correct answer because it is a module that is required to enable SSL (Secure Sockets Layer) on a web server. SSL is a protocol that provides secure communication over the internet by encrypting the data exchanged between the server and the client. Mod_ssl is specifically designed for the Apache HTTP Server and it allows the server to use SSL/TLS protocols for secure connections. Without mod_ssl, the server would not be able to establish secure connections using SSL.
8.
What's the WebLogic module name in Apache?
Correct Answer
D. Mod_wl_22.so
Explanation
The correct answer is "mod_wl_22.so". This is the name of the WebLogic module that is used in Apache. The other options, "mod_ssl.so", "ps -ef | grep http", and "-name httpd.conf", are not related to the WebLogic module.
9.
How many flavors of Apache web server exist?
Correct Answer
A. 2
Explanation
There are two flavors of the Apache web server.
10.
Which HTTP code stands for "content found ad served OK"?
Correct Answer
C. 200
Explanation
The HTTP code 200 stands for "content found and served OK." This means that the server successfully processed the request and is returning the requested information to the client. It indicates that the request was successful and there are no errors or issues in retrieving and delivering the content.