Configuring a basic Apache Server

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

2. How do you enable the httpd service to be started automatically when booting?

# systemctl enable httpd

8. Which command enables you to see whether the Apache web server is currently running?

# systemctl status httpd or ps aux | grep http

What yum command gives an overview of all yum groups that are available?

# yum groups list

Command to look for http software.

# yum search http

6. Which directory is used as the default Apache document root?

/var/www/html

4. Which command enables you to test a web server from a server that does not offer a graphical interface?

elinks

7. Which file is the Apache process looking for by default in the document root?

index.html

Command to install the Apache web server and its core requirements.

yum groups install "Basic Web Server"

Command to install the text based web server.

yum install -y elinks

1. Which yum group contains many useful Apache packages?

"Basic Web Server"

10. Names of configuration files and directories in the main Apache configuration file are relative to the ServerRoot. To which directory is the ServerRoot set by default?

/etc/httpd

3. What is the default location where RPMs can drop plug-in configuration files that should be considered by the Apache server?

/etc/httpd/conf.d

9. Which location is preferably used for storing virtual host configuration files?

/etc/httpd/conf.d

5. What is the name of the default Apache configuration file?

/etc/httpd/conf/httpd.conf

In the /etc/httpd directory what is the purpose of the three symbolic links to logs, modules, and a run directory.

Allows Apache to be started in the chroot environment.

Why is the chroot environment more secure?

Processes that are running in a chroot environment can access files in that chroot environment only.

5. Which directory contains the main Apache configuration file?

The /etc/http/conf directory contains the main Apache configuration file httpd.conf.

7. Which directory is used to drop configuration files that are installed from RPMs?

The /etc/httpd/conf.d directory is used by RPMs that can drop files in that directory without changing the contents of the main Apache configuration file.

6. Which directory contains the configuration files for the different Apache modules?

The /etc/httpd/modules.d directory contains configuration files that are used by specific Apache modules.

3. Which parameter in the Apache configuration file is used to specify where Apache will serve its documents from?

The DocumentRoot parameter specifies where the Apache web server will look for its contents.

8. Which virtual host type allows you to run multiple virtual hosts on the same IP address?

The NameBased virtual host is used as the default virtual host type. It allows multiple virtual hosts to be hosted on the same IP address.

4. Which parameter in the main Apache configuration file defines the location where the Apache process looks for its configuration files?

The ServerRoot parameter defines where Apache will look for its configuration files. All file references in the httpd.conf configuration file are relative to this directory.

9. Which line is used to start the definition of a virtual host that listens on port 80 of all IP addresses on the current server?

The VirtualHost parameter is used to open a virtual host definition. * refers to all IP addresses, and :80 defines the port it should listen on.

2. What is the name of the main Apache configuration file?

The default Apache configuration file is in /etc/httpd/conf/httpd.conf.

1. Which command installs the software packages that are needed to configure an Apache web server?

The httpd package contains the core components of the Apache web server. It can be installed using yum install httpd.

What does the file with the name magic do?

This file is used by the browser to interpret how the contents of the web server should be interpreted and it makes sure that the web server content is shown correctly in different browsers.

To create a catch-all entry for all HTTP requests that are directed to this host but that do not have a specific virtual host file, you can create a virtual host for _default_:80. If you don't do that, packages that have successfully arrived on your server because of DNS name resolving, but don't find a matching virtual host will?

be sent to the virtual host of which the configuration was found first by the Apache process.


संबंधित स्टडी सेट्स

The Skeletal System - Adv. Biology

View Set

Spring Study Guide (World History)

View Set

🍾🥂🍾best questions 2nd respiratory 🍾🥂🍾

View Set

BUS230 - Human Resources Quiz #1

View Set

Newton's Laws of Motion Assignment

View Set