Ravindra BagaleCourses & study guides मराठी Track your progress

Chapter 6: Web Servers — Nginx and Apache

AWS Cloud

Interview Questions

These questions on web servers definitely come up in cloud and DevOps interviews. When you reply, say one command or path out loud – the interviewer sees your hands-on experience.

How do Nginx and Apache handle concurrent work?
Nginx uses event-driven workers. Apache's MPM controls its processing model, and the event MPM frees request threads from some connection work. Both can serve files or proxy requests with the appropriate configuration.
What is a reverse proxy?
It accepts client traffic and forwards selected requests to upstream services. TLS handling, caching, load balancing and access rules depend on the configured deployment.
What would you validate before an Nginx reload?
Check the exact candidate using the intended executable and config selection. After the authorized apply, verify the named request and its expected result.
Does 502 prove an app stopped?
It is a gateway response for an upstream failure. Compare the corresponding log and configured target. An incorrect port or an invalid response can also cause it.
When does relabeling help a web-content denial?
After evidence identifies the wrong SELinux file context, compare the expected rule for the exact directory. Restore the known context, or have the appropriate persistent rule configured for a custom path.
What is an Apache directory override file?
.htaccess can apply permitted directives to a directory. The applicable Apache override rules determine whether it is read and which directives may be used. Nginx uses its loaded central configuration.

Connect the answer to evidence

Say which request, process and configuration your example refers to. Explain the observation you would expect and what you would investigate for a different result. The scenarios below use one training website so you can practice linking the site name, local listener, files and backend to specific responses.

Show how you would prove your answer

Friends, an interview question about a web server can start with one familiar word and end with a real decision. A candidate might remember that 502 means Bad Gateway but still be unable to tell whether the front door, the report app or the public route failed. Practice giving an answer that describes the job, names one direct observation and explains what you would do with the result. This is especially helpful when you are new to IT and have run a small local exercise but have not operated a public website yet. State the scope of the evidence you actually have.

Use one story throughout these questions. A training centre publishes a timetable, a handout and a reporting endpoint. The public name is meant to select the training website. A different default site lives on the same local HTTP port. The homepage and handout can be returned as files. The report request goes to a separate HTTP process. That means the same human phrase, “the class site,” can refer to static files, virtual-host rules, a proxy and an app. A useful answer traces one request instead of treating all those parts as interchangeable.

When someone asks for a command, say what it would tell you. A configuration test reads the chosen configuration and checks what the program can validate from that invocation. A TCP listener listing shows which address and port a socket holds. An HTTP response with a marker shows what a particular request got back. An error log can add the attempted pathname or upstream address. These are different observations. You can answer a difficult question simply by naming the smallest missing fact and choosing the appropriate safe observation.

Try answering each question out loud before reading its explanation. Start with a short first sentence that answers it directly. Follow up with a case from the training centre and the observation you would want. After you practice, read the evidence exercise near the end and build a short answer from the displayed data. If your answer includes a universal claim such as “this server is always faster” or “reload never affects visitors,” pause and ask what you can demonstrate from the workload, the installed version and the current site.

When would you choose Nginx or Apache?

Both can serve static files and act as reverse proxies when configured with appropriate features. I would choose according to the application requirements, the team's ability to operate the configuration and the results of measurements representative of the service. Nginx's usual architecture uses a master and event-driven workers. Apache uses a Multi-Processing Module, or MPM, which determines how it handles concurrent work. Apache's event MPM uses listener threads to take over some connection work so request workers can handle other requests. The simple description “one process for every Apache request” misses that difference.

Imagine the centre inherited an Apache setup where each course has approved limited per-directory overrides. Continuing that design might be reasonable if those overrides are relied upon, reviewed and kept within a documented scope. If the centre is designing a centrally managed service with a few static folders and a couple of upstream applications, Nginx's site and location configuration may be a good fit. Apache can also centralize route policy and proxy requests with its relevant modules. The question is whether a capability is required and who needs authority over it, as well as whether the performance and reliability meet the project's actual needs.

For a practical answer, I would describe the workload I plan to measure. A small text file requested repeatedly on a warm filesystem differs from a busy report app that waits on a database. Network latency, outstanding requests, resource limits, TLS handling and backend behavior can dominate the result. I would first use matching configurations that serve equivalent functions, then compare response time distribution, success and resource use under an agreed test. I would not claim a particular product is faster from the names of its processes. A team can know how both are built and still need evidence on its own request mix.

In a beginner interview, naming the employed architecture and an appropriate trade-off is enough. For example, a central configuration may help the small team review all rules together. A limited Apache directory override may help a shared hosting model delegate a specific permitted choice. Operations skills such as checking the selected host, reading the logs and planning safe updates transfer between both systems. Showing this reasoning answers the choice question better than repeating a ranking from a tutorial.

What happens when a reverse proxy receives a report request?

The client talks to the frontend using the classroom URL. The frontend selects a site for the host and a route for the request path. A static route might return a file directly. A configured reverse proxy route instead opens or reuses a connection to an upstream and sends a corresponding request. The upstream is the service responsible for that request behind the proxy. It may be another web server or an application. The reverse proxy receives the result and sends an appropriate response to the client. The student does not need to know the backend's internal address.

Consider a local class example. The report application listens on a loopback port and returns a small result for a GET route. Nginx accepts the student's course hostname at the frontend and forwards the report path to that loopback endpoint. A basic report response demonstrates both frontend and app. A homepage response proves only the route that actually handled that request. The backend's protocol matters. HTTP proxying and passing a request by FastCGI to PHP-FPM are different arrangements even if the two configured endpoints are local sockets or ports. I would verify the exact protocol used by the selected handler.

A proxy can provide a place to terminate TLS, choose among targets, cache eligible responses or enforce specific policies, depending on configuration. These features are capabilities, not automatic outcomes of putting a proxy in front of an app. Some reports must not be cached because their content is private or depends on the signed-in user. Some deployments put TLS between the frontend and upstream too. I would state which component terminates each connection. When checking a failed request, I would distinguish a status produced by the app from one created by the gateway. The frontend's error log and correlated path can reveal that difference.

A good follow-up is to explain cookies or original request information only if relevant. For example, an app behind a proxy may need carefully configured trusted forwarding information to interpret the client-facing scheme. Blindly trusting headers submitted by any client can misrepresent that information. I would follow the deployed proxy and app settings and check the observable redirect or log result. You do not need to claim that every route handles authentication, caching or a request body the same way to give a convincing interview answer.

Why does a visit to an IP show a different site?

The connection has delivered traffic to an address and port. The HTTP site selection can also depend on the requested hostname. If a client enters the IP as the URL host, it ordinarily sends that IP in the Host value. A named classroom URL supplies a different value. By default a listener can give unmatched names to its configured fallback. A 200 fallback reply is therefore consistent with a nonworking or untested named site. It proves the server for that destination sent an HTTP success response. It does not certify that every virtual host is reachable.

In an authorized plain-HTTP loopback test, I would hold destination and path constant and vary only the Host value, as shown in the configuration lab. I would compare the bodies because both responses can be successful. The distinct expected markers tell me which site handled each request. For Apache I would also check its virtual-host dump using the packaged wrapper and confirm which address and port each entry covers. Listen opens the socket, while <VirtualHost> associates site rules with eligible traffic. Having the block in the file does not prove a socket opened.

For ordinary HTTPS, the client must negotiate TLS before sending the HTTP request. It can offer the intended name in the TLS handshake so the endpoint chooses the appropriate certificate context. An HTTP Host header added to an IP-based URL cannot generally reproduce that handshake. I would use the HTTPS URL with its exact hostname and normal certificate verification, and if needed give my test client an authorized address mapping for that host and port. Using a known address for a test does not change DNS for anyone else. The result can separate name, certificate and named route issues.

As a follow-up, describe how a public domain can have multiple addresses. A local request to a selected IPv4 socket proves only the path it used. A client following an advertised IPv6 address or another load-balanced destination may reach a different listener path. A concise answer would name this as a check when reports vary by client, then compare the requested name, address family and response path. Changing the default server should follow the site's requirements. It is possible to diagnose the mistaken test using the correct name without making any configuration change.

What does a successful config test actually prove?

It shows that the selected server executable could process the chosen configuration for its supported validation checks under the invoker's conditions. Nginx checks syntax and tries to open relevant referenced files. On a package-managed Apache setup, I use the suitable control wrapper because it may provide needed runtime configuration. I still confirm that this is the entry config and include tree the intended service uses. Testing one file with a separate binary or different options can produce a green result irrelevant to the active process.

Say I review the course site's new handout mapping. A config with a root pointing to the archive might be syntactically valid. It may deliver an old file under the same name. The validation has no idea which handout was approved by the teacher. I would keep the existing version, review the difference, test the right candidate, and then use the expected hostname and path to check the result after applying. The marker might be this week's issue date. An unchanged route gives a small comparison. This gives a reproducible path from the file change to a user-visible effect.

An interview may ask why operators use nginx -t && .... The join means the second action is attempted only if the first returns success. It is useful when the check targets the exact version that will be applied and the apply action is documented for that service. It cannot protect against validating the wrong path, a later edit between operations, resource failure, or a semantically wrong directive. A good answer mentions review and deployment ownership. If the check fails, preserve the work that actually served the site, record the output and fix the separate candidate.

When reading a config error, avoid promising the reported line is always the cause. A missing brace or delimiter can only become visible to the parser on a subsequent line. I would inspect the reported file and the surrounding block. A new standalone configuration may also produce an unknown directive when a module is absent. Check the actual binary, loaded package setup and directive context before copying a fix from another distribution. Terminal evidence and a fresh intended request make the answer concrete.

How do reload, restart, start and enable differ?

On a service manager such as systemd, start activates the unit now and stop deactivates it. Enable changes its installation state so the defined activation arrangement can pull it in, often at boot. A disabled unit can still be running and an enabled unit can be stopped or failed. For the course website I would inspect the actual unit and ask whether it is loaded, active and installed as expected. I would also ask for a named response before concluding the site works. A separate process outside that unit can own the port while a service status check describes something else.

A service reload asks a running program to apply configuration via its supported mechanism. A typical Nginx reload has the master check the configuration and try needed resources, then start new workers as old ones finish their work. If it cannot apply the new configuration it can continue with the old one. A restart typically stops and starts the managed process and may interrupt existing connections. Apache graceful behavior has its own control operation. Both the package unit and the type of configuration change matter. I would choose according to the documented mechanism and the maintenance plan for the intended process.

Systemd also has a manager operation called daemon-reload. This operation rereads unit definitions and related manager metadata. It does not by itself direct the running web server's workers to apply a changed site include. Conversely, a supported reload of the web service does not reread all systemd unit definitions. If a prior unit edit changed the environment used at process launch, putting it into effect may require a compatible controlled restart after a manager refresh. This is why I ask whether the work changed a unit or a site file before choosing a command.

In an answer about continuity, explain the typical intent, then describe how you would verify it. A message that a reload signal was sent does not mean every new request now takes the expected route. Make a bounded new request after the apply, read the result marker and inspect the log if it differs. Record any unexpected impact and use the agreed restoration path. A claim of zero interruption would need a meaningful monitoring check and a definition of the behavior being measured. A small terminal experiment can confirm the routes tested without claiming every visitor's connection survived.

How would you diagnose 403 or 404 when the homepage works?

First get the exact failing request. The host, path and method identify the operation the student attempted. A homepage success tells me some named route works. It cannot prove a specific handout exists or is readable. A 404 generally means the server did not find a current representation for the resource, or chose not to disclose one. A 403 means the server understood the request and refuses to fulfill it. These meanings point to areas to inspect, while the server's mapping and logs explain the concrete reason.

For a static 404 I would identify the selected site and location, then calculate the expected filesystem lookup. In Nginx a typical root mapping adds the URI to a base. A prefix alias replaces the matched prefix with the configured path. The error log may show a path with an unexpected directory. A small case is a public downloads prefix that accidentally becomes an additional downloads directory under the filesystem root. That is a configuration error different from a missing upload to the correctly mapped directory. If a reverse-proxied app handles the route, I would consider its routing and app logs instead of assuming there is a local file.

For a 403 I would read the relevant application or web server diagnostics before reaching for a mode change. An Apache authorization rule, a file the worker cannot read, a missing directory traversal permission or a directory configured without an index or listing can each lead to a refusal. On SELinux-enforcing systems there is another authorization layer to check if denial evidence points there. An OS mode shown for a file alone is incomplete when a parent directory cannot be traversed. I would find the scope and owner of the denied action and follow the relevant documented policy and permissions.

As a candidate, think about how you would communicate which assumption changed. An answer such as “I would check root and permissions” is a start. An answer such as “the request for the approved handout hit the course server, and the open log shows an extra directory where the selected root appended the public prefix” gives the next engineer a useful reason to check placement and mapping. I can then retest the actual body with a safe named GET and verify that the homepage throughout still serves the approved marker.

How would you separate 502 from 504?

Both refer to a service acting as a gateway or proxy. HTTP 502 says it obtained an invalid or unsuitable upstream response for the request. In practice, a reverse proxy can also report 502 when a port refuses a connection and there is no usable HTTP reply from the backend. HTTP 504 means the proxy did not get the upstream response in time. It can be produced at different connection or response phases. I would correlate the failing request with the gateway's diagnostic before assigning a cause to either status. The student might see either from an intermediary that the application engineer was not looking at.

Consider a 502 for the class report while the homepage stays 200. I would speak the two observations first. The static path works, and the report takes a different route that uses an upstream. Check the selected host and route, then the reported endpoint and connection error. A refusal on a particular loopback port gives me reason to find the actual backend listener. A socket error might require comparing a filesystem socket path and access. An invalid upstream HTTP reply might suggest the wrong protocol or another backend misbehavior. The fact that the manager shows a process running is one clue, and I still need evidence that the handler listened and responded.

In a 504 case, the timing evidence can help distinguish connection establishment from waiting after a connection. A slow query is one possible reason for delayed responses, but increasing the proxy timeout immediately may keep requests waiting longer without fixing where they stall. I would check a safe direct backend request when appropriate, compare relevant request timing and consult the service's application or dependency logs. If app work is created by a request, I preserve the correct method and coordinate a safe probe. I can say what I would check without replaying someone else's write operation.

It is common for interviewers to ask how I would restore service. If a release changed the configured endpoint and I can demonstrate that the earlier tested version points to the intended background listener, I would consider the approved restore path. Restore only the affected rule and its dependencies after validation. Then make the named report request and a small comparison request. If there is no proof yet, say which next check will distinguish a proxy target mistake from application failure. This is better than proposing a broad restart based on a generic error page.

Why might a readable file still be forbidden?

Ordinary permissions apply to a process identity, not to what my interactive shell happens to read. The software must be able to traverse the parent directories and read the file. Access can also depend on group membership and access control lists. The web server can have separate authorization directives for the directory or URL. On a system with SELinux enforcing, policy asks additional questions about process and resource contexts. Some of those checks apply even when the file's normal read bits appear usable. First describe the exact failing request and look for the actual error or denial.

If the affected path moved from the standard web directory into a custom directory, I would check the current label and configured context for the specific path where relevant. A command such as restorecon applies the known defaults, and can help when a file has the wrong label under an existing rule. A custom path may require the intended persistent mapping to be defined before a relabel makes that correction. Relabeling without diagnosing the denial can leave the wrong default in place. The RHEL documentation starts with identifying and analyzing the denial. Reuse the focused observations in the CentOS lesson.

Suppose the denial is for a connection to a backend rather than reading the visible content file. A directory label change would not explain the failed connection. Inspect the relevant policy evidence and the actual target under the correct service context. Likewise, if an Apache directory rule explicitly denies the route, changing OS mode bits has no basis in that observation. State which decision blocked the request before recommending a specific authorized correction. When there is no policy denial evidence or you lack access to the audit data, describe that remaining question accurately.

When should you use a directory override?

Apache can permit an applicable file commonly called .htaccess to set configuration for a directory and its descendants. It is useful when a site owner needs to make an allowed change without editing the central server configuration. Whether Apache consults it and which directives it can use depend on settings such as AllowOverride and AllowOverrideList, configuration context and module availability. Apache can look for per-directory override files while processing a request where such lookup is enabled. That is why its documentation recommends central configuration when you have the access needed to maintain it.

In the class centre, imagine instructors are expected to control just a landing page choice under their delegated directory. A narrow allowed setting is easier to review than granting all override categories. If their override changes nothing, first check whether it matches the actual directory reached by the request, whether the relevant rule allows that directive and whether the module is present. An error due to invalid or prohibited content can affect requests. Name the observed response and read diagnostics. Do not copy an override from another host without knowing its allowed context.

Nginx uses centrally loaded configuration and does not implement Apache's per-directory override file. When migrating an application, list the behavior delivered by the existing overrides before moving it. Some rules may implement redirects or change index names. Others might enforce access policy that the new deployment must preserve. Translate the actual requirements into the new server's supported configuration and test both successful and denied requests. A migration is a request behavior project. Simply moving the same files into an Nginx document directory loses the instructions when the new server never processes that override file.

What could a load balancer replace, and what still runs behind it?

A managed AWS Application Load Balancer can accept application traffic and use listener rules to forward requests to target groups. That resembles some of the frontend routing work a reverse proxy can do, but it does not substitute for everything a web server or application does. The target still needs to respond to the applicable requests. A web server may continue to serve static course files or proxy to a local process behind the load balancer. The service boundaries depend on the system's design. A class site that needs to deliver a file still needs an origin that supplies the content.

Think about a health check. A monitor asks a configured method or route and expects a result according to its own configuration. A target may report a healthy homepage while a report handler has lost access to a dependency. If customers can reach the load balancer and a specific route breaks, I would check which rule, target group and response evidence apply. A healthy target membership result can narrow possibilities, but it cannot prove every route returned a correct body. Check a controlled behavior through the normal endpoint and, where permitted, the relevant target path separately.

The interview answer should also distinguish product headers from health. An HTTP response might contain a server identifier, but it can be added or changed by an intermediary. Nginx server_tokens off; can suppress version disclosure in the usual server header and error pages. Apache can limit visible server tokens and suppress its generated page signature separately. Reducing that disclosure does not patch software or prove who answered every request. Check the headers and body through the intended endpoint. An operator should know which frontend or backend supplied the observed information before treating a product label as conclusive.

Evidence replay for a mock interview

Run this Python block in a shell with Python 3 to practice reading an evidence table. The rows are a deliberately tiny set of supplied interview observations. The program groups them by question and checks the result, so it can run on a laptop that has no web server installed. No network, package, account or files are needed. Before running it, decide what you would tell the interviewer for each label. In particular, distinguish a named route that returned an error from a destination that never produced an HTTP response.

python3 - <<'PY'
records = [
    ("01", "GET", "unknown.example.test", "/", 200, "fallback", ""),
    ("02", "GET", "classes.example.test", "/", 200, "class home", ""),
    ("03", "GET", "classes.example.test", "/handout", 404, "", "open: missing file"),
    ("04", "GET", "classes.example.test", "/reports", 502, "", "upstream connection refused"),
    ("05", "HEAD", "classes.example.test", "/timetable", 200, "", ""),
    ("06", "GET", "classes.example.test", "/timetable", 200, "Saturday timetable", ""),
    ("07", "GET", "classes.example.test", "/", None, "", "TLS name check failed"),
]
print("id method status observation")
cases = {}
for ident, method, host, path, status, body, clue in records:
    if status is None:
        observation = "earlier connection stage"
    elif status == 404:
        observation = "resource lookup"
    elif status == 502:
        observation = "upstream path"
    elif method == "HEAD":
        observation = "headers checked"
    else:
        observation = f"body evidence: {body}"
    cases[ident] = observation
    print(ident, method, status if status else "none", observation)
    if clue:
        print(f"  {host} {path}: {clue}")
assert cases["01"] != cases["02"]
assert cases["03"] == "resource lookup"
assert cases["04"] == "upstream path"
assert cases["05"] == "headers checked"
assert cases["06"] == "body evidence: Saturday timetable"
assert cases["07"] == "earlier connection stage"
PY

The output identifies one fallback, one named home, a missing file, a refused upstream, a headers-only check, a verified body and a request that stopped at the TLS stage. This exercise classifies evidence given in the question. Its diagnostic labels are appropriate because the input includes a supplied cause where needed. For another case, a number alone may not support that classification. In a real log review, bare 404 can be an application-generated response rather than a missing disk file. An error in row three names a file open, which is what makes the file lookup investigation reasonable here.

Use three sentences to explain rows four and six to a partner. The report request reached the named frontend, which returned 502 and recorded a refused attempt to reach an upstream. The timetable request returned the intended Saturday body, so the site's working traffic includes that route. I would verify the selected report destination and the actual app listener before a managed change. Then explain row seven separately. There is no HTTP status in that observation, so identify the certificate endpoint and intended name before inspecting normal access logs for an HTTP request. Your partner should be able to repeat both explanations without memorizing the table.

Repeat the exercise with a modified clue in your notes. Replace the refused endpoint with an error that says timeout while reading an upstream response, and change the status to 504. Which test changes? The timing now points to a response that took too long at that stage, so inspect backend response time and dependencies before deciding whether the same restore plan applies. The printed toy classification has no 504 branch. Add your own narrowly explained label for this new case or write the new conclusion on paper. This is a useful task in separating the recorded evidence from the assumptions of a simple tool.

Practice three follow-up answers

Which log would you read when a package service does not appear to start?

I would confirm the actual unit and use the authorized service manager status and journal for that name, bounded to the recent attempt. Then I would read the web server's startup or error diagnostics for the selected configuration. If the cause is a bind conflict, I would compare the exact listener and established ownership. A host that already answers another site should remain available while the new startup failure is investigated.

How would you test a change that should affect exactly one path?

I would write down the old and expected new result for the named route and an adjacent route that should remain unchanged. After reviewing and validating the correct candidate I would apply it through the existing service. A named GET can check the body as well as status for both paths. Any unexpected response remains a specific observation to explain. A passing syntax test verifies input acceptance, while the request compares actual routing.

Why does a working backend alone not prove an application release succeeded?

Its local response does not include any listener or route through the public frontend. The proxy could be configured to reach another backend, clients may resolve a different address, and TLS can fail before an HTTP request is sent. I would compare the intended safe request at the relevant stages and identify the first difference. This gives enough evidence to narrow which group needs to investigate.

What would you do if the recruiter gave only a 502 screenshot?

I would ask when, where and for which exact safe request it occurred. I would check which component returned the screenshot's status and inspect the correlated error at that point. A 502 tells me to look for a bad upstream result or connection problem, but the exact cause might differ by route. A known 200 nearby on the same site can help limit the immediate investigation to the proxied operation.

Choose the defensible answer

  1. A test of the IP returns 200 with a package welcome page. Which sentence belongs in the progress report?

    Answer and reasoning

    The address and port reached an HTTP service and returned the welcome body. The intended named route still requires verification. This accounts for a fallback and does not infer the health of an unrelated virtual host from the result.

  2. The server successfully reads a new config but a stylesheet starts returning 404. What should you check next?

    Answer and reasoning

    Inspect the exact named request and selected path rule, then compare the disk location in the error log with the expected content placement. Accepted syntax still allows an incorrect mapping. Checking the actual asset yields more useful evidence than another syntax test alone.

  3. A colleague calls an Apache virtual host a new open port. Which two facts should you separate?

    Answer and reasoning

    The listen directive creates the relevant binding. A virtual host defines handling for eligible requests. Inspect which sockets actually listen and use the virtual-host configuration dump to review which site names select its rules.

  4. How would you classify an HTTPS error that appears before any status code?

    Answer and reasoning

    Investigate the stage that actually failed. In the replay row the supplied evidence names certificate verification, which happens during the TLS handshake before ordinary HTTP. Check the intended name and endpoint while retaining normal verification.

  5. An interviewer asks if raising the timeout always cures a 504. How should you respond?

    Answer and reasoning

    No. The result establishes a wait expired at a gateway. Determine which phase timed out, what target it used and how the relevant backend handled the request before deciding whether to change a limit or fix a dependency. A higher limit may make clients wait longer for the same failure.

One useful way to grade your own answer is to mark the sentence where you first crossed from an observation into an inference. In row four, you observed the written 502 and connection refusal. It is reasonable to infer that the selected proxy route attempted an endpoint where the connection was not accepted. It is still an open question whether the app was stopped, used another port, or was in another network environment. In an interview, saying the app definitely crashed crosses farther than the evidence allows. State the next comparison you would make to resolve that difference. An interviewer can tell whether you understand the problem even if the exact distribution-specific command escapes you.

For practice with a partner, take turns moving the failure one layer earlier. Start with the expected report content, then substitute a gateway error, an unexpected named route, a rejected certificate and finally an absent connection. At each step ask which logs or result fields might no longer exist. A gateway error can have HTTP access evidence. A rejected certificate may have no completed HTTP request. A failed destination connection may have no server-side request entry at all. By the end, you should be able to say how far each request traveled and choose a fitting next observation within the system you are authorized to inspect.

Cards for a short answer you can defend

Architecture depends on the installed program

Nginx uses event-driven workers. Apache's MPM determines request handling, and the event MPM includes event-driven features. Compare the real workload and configuration.

One result belongs to one request

Read the actual host, path, method and body. A successful fallback and a successful named site can have identical response status.

State the apply evidence

The test accepts a candidate. The documented apply targets the intended service. A new named request checks the outcome. Use relevant logs for the cause.

Gateway results need a target

A failed proxied route need not affect the static homepage. Read the reported target, protocol and failure stage before adjusting the backend.

Answer in a usable order

State the immediate conclusion, explain the concrete evidence, then name the next authorized check. A partner should be able to reproduce it.

Official references