Plesk

Apache and nginx Web Servers (Linux)

Plesk for Linux uses the Apache HTTP Server (http://httpd.apache.org/)
for hosting websites. Apache itself does not operate with websites; it
manages virtual hosts, that is web resources identified either by an IP
address or a host name. When you create a site, Plesk adds a new virtual
host to Apache so that the site becomes available through the web
server.

By default, to achieve better performance when delivering web content,
Apache is supplemented with another web server - nginx. For details
about how Apache is integrated with nginx in Plesk and how to make
Apache a standalone server, see Apache with nginx.

On the other hand, you can exclude Apache from the process of handling
requests for web content of certain websites. You can do it by changing
nginx mode. For details, see Adjusting Apache Web Server Settings.

Default Web Server Configuration

The Apache configuration for all virtual hosts in the system is defined
via the file /etc/httpd/conf/httpd.conf (on Red Hat Enterprise
Linux, CentOS, and CloudLinux) or /etc/apache2/apache2.conf (on
Debian and Ubuntu). The configuration files for virtual hosts are on the
lowest level of the configuration files hierarchy. They are included
into the Apache configuration file (last_``httpd.conf``) through
several levels of inclusion using the include directive. The nginx web
server is configured similarly: the /etc/nginx/nginx.conf file
includes the configuration files of all virtual hosts through several
levels of inclusion. You can learn about the hierarchy of Apache and
nginx configuration files
.

Each virtual host in the system has two files - last_httpd.conf and
last_nginx.conf - that define default Apache and nginx configuration
for this virtual host correspondingly. These files (located in
/var/www/vhosts/system/<domain_name>/conf/) are generated
automatically based on so-called configuration templates. Therefore, if
you want to change the default web server configuration, you should
adjust these template files. Learn how to do this in the Changing
Virtual Hosts Settings Using Configuration
Templates

in the Advanced Administration Guide.

<…

Exit mobile version