Now let's reconfigure Apache. To do this, open /etc/httpd/conf/httpd.conf and change NameVirtualHost to:
Also, change the opening tag of each virtual host:
That's it for Apache. Now go to /etc/nginx and open nginx.conf. Here are the general parameters:
HTTP server parameters:
And now, for each Virtual Host, the following record should be present:
If you want to cache some content, simply add the following to the description:
Now here is the full configuration, so you don't get confused about what goes where and how:
