Virtual Host
Web Virtual Host
A web-server configuration that lets one server host multiple websites using different names or addresses.
In everyday business: One server can host several business websites separately.
LINUX WEB SERVERS
Install, structure and troubleshoot production-style Linux web servers, then understand where virtual hosts and reverse proxies fit.
Chapter 17 moves from the course overview into linux apache and nginx web server. The aim is not to memorise product menus or commands. The reader should understand what problem the technology solves, how it fits into the wider servers and virtualization technical textbook, what normal operation looks like, and how to prove the result in the field.
The previous chapter introduced linux samba file server playbook. This chapter continues the sequence by focusing on linux apache and nginx web server playbook, so the reader can connect the architecture to a more specific operational problem.
This subject matters because servers infrastructure supports normal business operations. Understanding the design makes purchasing, troubleshooting and recovery decisions easier to explain and verify.
You do not need to memorise the jargon first. Understand what each term does and why somebody running a company would care about it.
Web Virtual Host
A web-server configuration that lets one server host multiple websites using different names or addresses.
In everyday business: One server can host several business websites separately.
Apache HTTP Server
A widely used web server that serves websites and web applications.
In everyday business: One Linux server can host internal or public business websites.
Nginx
A web server and reverse proxy commonly used for websites, APIs and application front ends.
In everyday business: It can serve websites or route incoming web traffic to application servers.
Domain Name System
The service that translates names into IP addresses and helps Windows domain clients find services.
In everyday business: People and applications can use names instead of remembering network numbers.
Network Address Translation
A router or firewall function that changes IP addressing as traffic crosses a boundary.
In everyday business: Many private office devices can share one public Internet address.
This topic affects the systems staff depend on for sign-in, files, applications and business continuity. The technical design determines how easy the environment is to manage and how painful a failure becomes.
What it means: DNS translates names into IP addresses and also helps many business services locate each other.
In normal business language: It is the company phonebook for systems. Staff type a name such as fileserver or portal instead of remembering a number.
Why the decision matters: Good DNS design reduces configuration mistakes and is especially important for Windows domains, cloud integrations and internal applications.
What it means: A firewall controls which network connections are allowed between users, systems and external networks.
In normal business language: It is a security checkpoint between parts of the company network. It should allow legitimate work while blocking unwanted access.
Why the decision matters: Firewall rules should describe real business flows such as 'staff may reach accounting on HTTPS', not unexplained broad permits.
What it means: NAT changes IP addresses as traffic crosses a network boundary.
In normal business language: It is similar to a company switchboard: many internal extensions can share one public number.
Why the decision matters: NAT helps with address use and publishing services, but it is not a substitute for firewall security.
Both can serve static content and route requests to applications. Apache is highly modular and uses VirtualHost configuration. Nginx uses server blocks and is widely used as a web server and reverse proxy.
apachectl configtest
apachectl -S
systemctl status httpd
nginx -t
systemctl status nginx
A reverse proxy accepts the client connection and forwards requests to an application server. This can centralise TLS termination, hostname routing and access policy, but the backend application still needs secure configuration.
Read access and error logs before changing configuration. HTTP status codes, upstream timeout messages and TLS errors often reveal the layer that failed.
A company depends on this technology every day. The technical configuration may be correct, but the real requirement is predictable operation, evidence when something fails and documentation another technician can understand.
What the chapter teaches us: Treat the subject as a service with a purpose, dependencies, normal behaviour, failure modes and a recovery method.
Host two lab sites on one server using two DNS names. Verify each name reaches the correct document root, then test an unknown Host header.
Both DNS names show the same website. Check DNS, enabled site configuration, server_name or ServerName matching, default site order and config reload.
Linux Apache and Nginx Web Server Playbook should now be understood as a business service with a technical implementation, not simply a collection of commands or product names. The important habit is to know the purpose, understand the dependencies, measure the result and document what was proven.
A good answer should explain the reason, not only repeat a product name or command.
Use the current product documentation and project requirements for production work.