Chapter 7: Static Website Hosting (3 OSes × 2 Web Servers)
Common Mistakes I See Students Make
Friends, these static hosting mistakes happen in every batch – not copying the files, the SELinux label after mv, the wrong root path. Read them once and keep them in mind.
मित्रांनो, स्टॅटिक होस्टिंगच्या या चुका प्रत्येक बॅचमध्ये होतात – फाइल्स कॉपी न करणं, mv ने SELinux लेबल, चुकीचा रूट पाथ. एकदा वाचून ठेवा.
दोस्तों, स्टैटिक होस्टिंग की ये गलतियाँ हर बैच में होती हैं – फ़ाइलें कॉपी न करना, mv से SELinux लेबल, गलत रूट पाथ. एक बार पढ़कर रखो.
- Uploading files to the home folder and forgetting to copy them into the document root.
- Assuming a transfer applies the correct SELinux label. A same-filesystem move may retain the previous label. Compare actual and expected types and repair only the affected path when evidence supports it.
- Naming the file
Index.htmlorindex.htmwhen the config expectsindex.html. - Testing a named site using only the server address. That can legitimately return the installed default. Leave required defaults available and test the intended hostname.
- Wrong
rootpath — a missing or extra folder level (e.g./var/www/mysite/mysite). - Confusing required network access with certificate configuration. Check the approved client path and intended listener. Verify TLS identity separately for HTTPS.
- Uploading into a directory the login cannot write. Use the approved staging location, then have the publisher install the reviewed files into the intended release with scoped permissions.
Trace the request before choosing a fix
Check the route, named site and selected release in order. The examples below show which evidence distinguishes each common static hosting mistake.
Catch common hosting mistakes before they affect a real site
A student prepares the invitation for a college open day. The review team opens it on the student's laptop and approves the content. After the update, a campus computer sees last month's invitation and the page is missing its background image. The student remembers uploading the correct folder, so they start changing Nginx settings and firewall rules. A release comparison would have caught two simpler mistakes first. The upload landed in the student's private workspace, and the browser was asking for an image path that was never part of the reviewed release.
This review follows ordinary decisions from opening the editor to handing over a working public site. Each example names the observation that distinguishes the mistake, the smallest corrective action for the owned exercise and the result that would verify it. The tools will look familiar from earlier lessons. Here the aim is to decide which tool has the power to test the expectation, and which would merely change shared state while leaving the question unanswered.
Make a short checklist for your assigned host before using administrator commands. Keep the selected hostname, socket, exact root and approved release marker. Record which paths already work, which site owns them and which part of the system you can change. A single incorrect asset often calls for a publication fix. A whole connection failure calls for a separate route comparison. You can spend less time guessing if you know which boundary the failed check actually reached.
Run a browser preview over HTTP before uploading
Opening index.html from a laptop can produce a convenient looking page. But file: URLs use local filesystem handling rather than fetching a site from an HTTP service. Relative links may appear to work under a different base path. The browser may apply different security rules to its scripts or resources. A case-insensitive desktop filesystem can also tolerate a different spelling for Poster.png than the Linux host uses. Those are reasons to test the public directory through a small local HTTP server before changing the cloud machine.
Choose a staging directory containing only the public sample. Confirm that it has no drafts, credentials, archives or linked private directories, and run a local server bound to 127.0.0.1. Open the homepage and at least one nested page and stylesheet path. Read the request results and compare their paths to the intended manifest. If the nested page alone gives an unstyled response, the network panel can show that the relative link resolved below its own parent directory. Repair the link for the intended deployment path and retest before uploading the changed bytes.
# Run from the approved public preview directory you created for the lab.
python3 -m http.server 18797 --bind 127.0.0.1
# In another local terminal, request the relevant test pages:
curl --noproxy '*' --include http://127.0.0.1:18797/
curl --noproxy '*' --include http://127.0.0.1:18797/css/invite.css
Stop only this process with Ctrl+C in its own terminal. If that port is already occupied, choose a different high local port. The preview proves the selected files can work together in a local URL tree and helps catch content and path mistakes. It does not exercise EC2 routing, Linux service account restrictions or the production vhost. Keep those checks in the acceptance plan for later. Use a local-only listener for the review rather than creating a new public service.
Distinguish the editor folder, uploaded folder and selected root
In the invitation example the local workspace is where the student edits. An upload through SCP or SFTP puts a copy into a permitted directory on the guest. The document root is the path Nginx or Apache uses for the chosen site. These three locations can have similar names and contain versions of the same files. A transfer tool can correctly finish sending the current draft while the server continues reading last month's bytes from its own root. Diagnose a mismatch with the exact served path and a version marker, not with a successful upload message alone.
Learn to spot an extra directory level. If you copy a folder named invite into an existing directory also named invite, the real index might end up under invite/invite/index.html. The site looks for its usual index in the selected root. Listing the outer directory confirms that there is something there but does not prove the file is at the expected location. Write a short manifest using paths relative to the public root, then compare it with a recursive file listing inside the destination. A missing image and an extra folder become visible without any web configuration edits.
Use an explicit set of allowed names for a small training release. Verify its bytes and permissions in a separate approved stage before showing it through the named site. If direct remote upload to a root-owned directory is blocked, transfer to the approved staging location with the normal login and use the site's controlled installation process. Changing the whole web tree to be writable by the login account or worker changes more authority than the transfer requires. Confirm who is meant to publish and who is meant to read the files.
Test the named vhost before interpreting a welcome page
A common first test uses the bare IP or localhost and gets the packaged homepage. Such a request names the address or localhost. A novice may read the default body as proof that the new website cannot work. In a shared configuration the default and a named website can both be correct. Use the intended hostname and the actual listener in the test, and compare the content marker and per-site access record. A request whose homepage is reasonable but mentions the wrong project tells you where to investigate selection.
Check how the configuration selected the stanza that should handle your name. On Ubuntu a definition in sites-available usually needs an enabled link that the active config includes. On an RPM image the enabled file often lives directly under an included conf.d location. These are conventions to verify. A misspelled filename or misplaced backup can change which files the server loads, while a correct definition elsewhere can be ignored. Use nginx -T or the suitable Apache vhost map to identify the parsed site and its source.
Record the default behaviour you observed before activation and read warnings from the complete syntax test. Duplicate names or different socket groups can lead to a different choice even though the command exits successfully. Then test the new site by the intended name after applying the approved change. Leave a required default site available and compare an authorized unmatched test if the listener supports one. This catches the case where the new configuration accidentally took over a shared fallback rather than simply adding another working site.
Read file-traversal and label evidence before changing permissions
A directory's execute bit often matters for finding a descendant file. A 0644 public document can remain inaccessible to a worker if a parent directory denies traversal. A read performed as root usually does not prove what the worker can access. On a Linux practice host, namei -l traces path components and ls -ld reports an entry's modes and owner. Use the actual effective web user and guest policy to interpret their values. First make sure the path you are inspecting is the one selected by the site.
On a labelled system, moving a file can preserve an unexpected label. For a new file copied without attribute preservation, the destination's creation rules commonly guide its label. The precise result depends on the filesystem, copy option and whether a target existed. Check actual and expected contexts at the selected path. If they differ and the expected mapping matches the approved web use, preview and apply a scoped restorecon to the affected file or release. If the expected mapping itself needs a new qualified rule, have the owner review the intended root and confirm the scoped policy.
A refused directory listing can also produce a 403 when an explicit file in that directory would still work. Use a harmless disclosed public file and an intentionally index-less sample to compare the two decisions. Keep private content outside the public tree. Neither a server option that disables listing nor a file that lacks a navigation link protects it against a direct authorized URL. Practice selecting the relevant server log and guest policy record before deciding whether a 403 needs a fix at all.
Inspect the socket before selecting service commands
Amazon Linux 2023 and CentOS Stream usually package Apache as httpd, while Ubuntu commonly uses apache2. Nginx uses the expected nginx unit on the packaged setups. Identify what is actually listening before using start, stop or reload on any of them. A configuration block for port 80 has meaning only if the intended service can bind that socket. A different running daemon might already serve another project. Find its identity using ss and use a dedicated host or loopback fixture for your own exercise.
Students sometimes see a healthy active status, edit a definition and then assume it is effective. A running service, a saved configuration and an accepted request give different evidence. Check the actual include, parse the disk configuration, activate the verified service change under the site owner and make the exact request again. An invalid candidate can remain on disk while the previous running config still handles traffic. Resolve that state promptly before a future restart. Do not signal or stop an unrelated process to see whether the new configuration happens to work.
Keep new network access tied to a specific deployment need
A private Ubuntu host can serve the named local invitation perfectly while a laptop outside its network receives no response. That may be intentional. Remote access depends on the approved destination, the route from that client and relevant controls such as a security group and guest firewall. Ask what exposure the assignment requires before opening a rule. Local review can be a complete lesson outcome when the task only involves the service's static file mapping. A public deployment has a different acceptance plan.
If a permitted campus client times out even though the origin responds locally, compare the intended name, address and port with the actual client request. An instance can have a private address, an associated public address or an approved front door with another address. Choose the route that was planned. An outbound address lookup tells you the source seen by a service that received that outgoing request. It does not necessarily tell you the destination for incoming web traffic. An assigned named endpoint and the socket at the guest are separate pieces of evidence.
Inspect current network controls and record which source may use the intended web port. Shared AWS security groups can apply to multiple resources. An existing runtime rule on a guest firewall can be meant for another class. Do not change their shared behaviour because one unrelated browser failed to connect. When the trainer needs a bounded new path, record its permission, scope and cleanup. Give the infrastructure owner your local passing result and the failing external path so their work is based on a comparable request.
Verify the HTTPS deployment separately from the HTTP check
Opening the same path with http: and https: makes two different requests. TLS has to complete before the protected request can reach the chosen site. A certificate must name the expected service identity and validate under the client trust settings. A useful public DNS name is common, and a supported IP address certificate or trusted private authority can cover other deployments. Check the actual expected identity rather than assuming that storing any valid certificate on disk makes the correct listener use it.
For ACME issuance, first choose the supported challenge and test that route. HTTP-01 begins on public port 80. DNS-01 checks a designated DNS record. Once you have the credential, separately verify its installation and the listener clients reach for HTTPS. An approved front door can terminate TLS, so a direct probe to the guest and a client's normal URL can see different credentials. Include which component serves the certificate in your acceptance notes. A successful 80 check alone cannot prove the 443 setup.
A renewal check is part of running a public site over time. A certificate can be issued and then expire if the scheduled process later uses a removed challenge path or if updated files never reach the active endpoint. Locate the exact lineage and planned deployment action under the site's owner. After a real renewal confirm the actual served leaf and its expiry, along with the expected site response. Put private key material outside the public folder and keep its access restricted. Public probes do not require disclosing the private key.
Verify the response body and type for each important file
A student confirms the homepage with a 200 and assumes all files were deployed. Browsers make separate requests for CSS, images and scripts. The HTML can be served correctly while a nested relative path selects a missing image. A static config can also return a page for an unexpected path, resulting in an HTML response that a browser will not interpret as CSS. Pick one key dependency from the release and test that actual URL, media type and file marker in addition to the homepage.
When the browser and command-line output look different, open the resource details in the browser network view. Check the requested URL, final scheme, status and whether the body came from a cache. If a direct fresh request returns the new bytes and the browser display still has old styles, find out whether its release reference is the same and whether an intermediate cache participates. An indiscriminate restart or permission change does not fix a client that keeps asking for the earlier filename. The evidence can narrow the problem to a URL or cache policy without touching the shared process.
A helpful custom error body should still use the planned HTTP status. After removing an old event link, request its URL and check that the response is a real 404 rather than a successful copy of the homepage. When the site intentionally redirects an old page, verify that response and its exact target separately. For instance, a missing event link can point to an unavailable sample while the active invitation remains 200. These are different public requirements and should be recorded explicitly instead of checking only whether the browsers render a page.
Keep backups, drafts and build inputs outside the public tree
The college can approve its final invitation without approving the spreadsheet that contains registration information. A publisher can accidentally copy both files or a version-control directory into the root if a whole workspace is transferred without review. Disabling directory listings does not remove direct access to known files in an otherwise public tree. Build a release directory containing exactly what readers are meant to access. For a small site a short allowlist of files makes this possible without guessing which private names to exclude.
Software and framework packages can include their own build folders. The generated public directory can be a small subset of the repository. Check the project's build output definition so an HTML page with a working local developer server is not mistaken for a ready static release. A browser-side script can still call an external service, so make sure the public build contains no secrets and behaves as intended when that dependency is unavailable. A server-side program or database cannot execute just because its source files were copied under a web root.
Keep a private copy of each configuration that you intend to edit and protect it according to the host's policy. A backup that lands in a wildcard include can become a second loadable configuration, and a copy made beneath the web root can become public. Restore from the approved scoped copy and check both syntax and HTTP behaviour. A whole-instance backup can be useful for different recovery goals. It does not replace identifying the specific backout for the one vhost or release path you are changing.
Lab one. Compare the uploaded manifest with the actual public tree
This lab uses Python 3 and a new scratch directory. It makes the upload and publish stages deliberately diverge. Start with the approved three-path list, then inspect the printed differences for the public directory. Predict which files the first publication could actually supply. You will repair the state by staging a separate reviewed tree and switching only a temporary selection pointer. The pointer models an approved release choice and is never connected to a running site.
python3 - <<'PY'
from hashlib import sha256
from pathlib import Path
from tempfile import TemporaryDirectory
import os
release = {
"index.html": b"Open day invitation, Saturday edition\n",
"sessions.html": b"Open day session list\n",
"css/invite.css": b".open-day { color: maroon; }\n",
}
def write(root, files):
for name, body in files.items():
target = root / name
target.parent.mkdir(parents=True, exist_ok=True)
target.write_bytes(body)
def manifest(root):
return {str(p.relative_to(root)): sha256(p.read_bytes()).hexdigest()
for p in root.rglob("*") if p.is_file() and not p.is_symlink()}
with TemporaryDirectory(prefix="invite-release-") as area:
base = Path(area)
inbox = base / "uploaded"
public = base / "previous"
candidate = base / "candidate"
selected = base / "selected"
write(inbox, release)
write(public, {
"index.html": b"Open day invitation, older date\n",
"invite/sessions.html": release["sessions.html"],
"notes.txt": b"Synthetic notes for the exercise\n",
})
selected.symlink_to("previous", target_is_directory=True)
approved = manifest(inbox)
found = manifest(selected)
missing = sorted(approved.keys() - found.keys())
extra = sorted(found.keys() - approved.keys())
changed = sorted(name for name in approved.keys() & found.keys()
if approved[name] != found[name])
assert missing == ["css/invite.css", "sessions.html"]
assert extra == ["invite/sessions.html", "notes.txt"]
assert changed == ["index.html"]
print("missing:", missing)
print("extra:", extra)
print("content changed:", changed)
write(candidate, release)
assert manifest(candidate) == approved
pending = base / "next-selection"
pending.symlink_to("candidate", target_is_directory=True)
os.replace(pending, selected)
assert manifest(selected) == approved
print("selected the candidate with all three approved files")
pending.symlink_to("previous", target_is_directory=True)
os.replace(pending, selected)
assert manifest(selected) == found
print("rollback selected the recorded previous tree")
PY
The first public tree lacks the expected stylesheet and sessions path. An extra directory contains a sessions file, so finding the filename somewhere on the host was not enough. The homepage exists under the expected relative path but has different bytes, exposed by a different checksum. The script reports both missing and unexpected paths. It hashes only ordinary files in its known synthetic tree. A real publishing tool should inspect symlinks and other entries explicitly rather than relying on this small manifest model.
Before the simulated switch, the candidate contains all approved files with matching byte digests. The atomic replacement works because the links are in one temporary filesystem directory, so the selected name refers to either the prior tree or the reviewed candidate. The simulated rollback proves the switch can restore exactly the previous bytes. The previous example tree is intentionally flawed. On a real server the stored rollback point should be the last accepted release, and file labels, permissions and actual site responses would need their own checks. At the end Python removes its scratch data.
Lab two. Review an approved hosted release with a partner
Prerequisites are a training vhost you can view through its assigned local or private listener, one marked example asset, a prior result for any intended default, and an approved connection to the viewing machine. The investigator uses read-only site, socket and log evidence. The publisher keeps the source and prepared manifest. Agree which routes should exist before making a request. The point is to detect a mismatch early, so this exercise does not manufacture an outage on an AWS security group or a running site's controller.
Write the declared site name, scheme, listening address and port. Pick the known homepage, one asset, one intentionally missing path and a declared control host if the exercise includes a shared listener.
Compare the intended website root with the explicit public manifest. Check each exact relative file name, expected content marker and relevant access scope. Identify any extra file that should never have been placed there.
Send each request to the approved listener with the intended site hostname. If a hostname is mapped only for the test, record that override. The expected output supplies matching 200 content for live resources and the documented status and body for the deliberate missing request.
Compare one failure with its site log or route evidence. Write a proposed correction tied to the observation and show the one repeated check that would prove it. Keep the control request in the plan to spot unrelated regressions.
If your partner receives the default while the expected name is active, compare their destination, listener and exact requested name. If their browser display misses an asset, inspect that resource path rather than editing the homepage globally. If the named local probe works and the permitted client fails before any accepted request, hand off the verified listener and observed route to the infrastructure owner. No managed settings or test resource need to remain after a read-only review. Remove your own temporary output copies if the exercise created any and keep only the approved acceptance evidence.
Make filename and URL conventions visible in the release
Choose public filenames and links that the site owner can maintain. A folder called Sessions and a link to /sessions/ are different names on many Linux filesystems. An index entry under a directory can also be different from a file with a similar name at the root. Write paths exactly as requested and review them case by case. Try a nested page in the HTTP preview and compare every link to the case of its actual target. A local file opened by a graphical shell may not reveal which path an HTTP client will construct.
Translate a reported missing path into a precise file lookup under the selected root. When the index is configured to index.html, an uploaded index.htm may not be selected unless another rule names it. The site does not infer what you meant from the names. A saved index page in a different draft folder is also unrelated to that initial lookup. In the exercise choose the exact index filename first, record the mapped root and test its marker with the actual named request.
Asset paths need the same discipline. If the release will be served at a URL prefix, make sure links work with that prefix before applying a change meant for a host-root site. A root-relative link begins at the whole host, while a relative link follows the document's base URL. The working location on your disk is not the browser's base. Check the network request and the release manifest together. This removes the temptation to duplicate the CSS in several directories simply to make one broken link appear to work.
Identify what your backup can restore before relying on it
A configuration backup and a content release solve different losses. If you changed a file path in the vhost, a copy of all public assets cannot reconstruct the earlier routing configuration. If you replaced the public index with the wrong edition, an old vhost points to the same pathname and may still read the wrong bytes. Before a shared change save both the relevant configuration and the previous accepted public release under trusted private paths. Note any enabled links and which service or process must adopt the previous config during rollback.
An instance image or volume backup can help rebuild an environment. It is a different kind of recovery from restoring one reviewed site configuration or public folder. Test a scoped restore on a private staging area. Compare manifest and expected markers before using it. If the server shares storage or service definitions with other sites, a whole machine rollback can affect them. Choose the smallest approved recovery action that fixes the identified change and preserves the unrelated sites' current releases.
Record sensible check points. Validate the replacement config before reload, request the named origin, and verify the delivery route a reader actually uses. If the changed site fails, restore the old exact definition or release under the agreed process and test both the requested site and one existing control. If it still fails, preserve the timeline and compare route and certificate evidence rather than repeatedly toggling versions. Good backups make recovery possible. Good acceptance evidence makes recovery observable.
Turn each symptom into an evidence check for the right owner
| Mistake | Evidence | Correction to consider |
|---|---|---|
| Correct upload in the wrong folder. | The stage tree matches the source, but served root has the older marker. | Publish the reviewed bytes into the intended release and verify the exact host and path. |
| Working vhost tested only by the raw address. | The bare request chooses the default while a named request and log identify the new block. | Change the acceptance check to use the proper hostname. Keep the required default. |
| Broad chmod used for an unrelated 403. | A directory rule, path walk or policy event shows one separate refusal. | Use the specific scoped repair the observed decision requires. |
| Remote access treated as a file read problem. | The site returns the expected local body but the approved remote client cannot establish the connection. | Check actual listen address, destination and applicable network rules. |
| HTTPS certificate is trusted for a different host. | The served certificate's SAN does not cover the URL used by the client. | Verify endpoint selection and the site's approved matching credential. |
| Successful status hides missing styling. | The asset returns an HTML fallback or an obsolete stylesheet marker. | Correct the exact resource link, mapping or identified cache path. |
| Rollback file is included as a second definition. | The parsed map reports two copies or a conflict warning. | Retain the backup outside the active include and revalidate. |
One way to practise is to present the mistaken assumption first: “I uploaded the directory, so it must be the live directory.” Then name the independent observation that could disprove it. For the upload, make a direct request for the expected updated marker and inspect the configured root. For the network, compare connections from the assigned internal and permitted remote client. For the host rule, compare logged requests under two explicit names. Every comparison has a clear expectation and can be repeated by someone else.
End a handoff by marking the observed outcome instead of naming a tool alone. A sentence such as “I ran curl” says little. Include the approved hostname and path, the expected status or release marker, and what came back. If the finding belongs to another owner, send the narrow evidence for their component. A packet that never arrives will not be solved by the release publisher. A site with the correct address and an absent file can be corrected within its public publishing scope.
Review a change that touched files and configuration at once
Suppose a volunteer changes the invitation time and moves the entire public directory to a new path in one update. The vhost now serves the wrong folder because they omitted the directory level that contains the site index. An attempt to fix the problem by changing the file permissions creates a second change to diagnose. A more controlled workflow starts by preparing the new release with the same relative paths and comparable permissions. Review its manifest and markers before writing any new root.
When changing the configured location, compare the old and new settings and preserve a private copy. Read the actual parse output to discover whether the candidate was included. A warning can be meaningful even when the test exits successfully. If the expected hostname and root appear and no blocker is reported, apply the authorized action. Repeat the named homepage, asset and removed URL checks. An old homepage at this stage can point to a different effective root or delivery path. Compare its log and marker instead of making another unrelated change.
If the new root proves wrong, restore the previous scope of configuration and confirm the older accepted bytes are still available. The release backup protects file changes, and the config backup restores the pointer. Preserve the original broken candidate outside active inputs if it will help the review. The one-failure-at-a-time approach teaches what happened and makes a real backout possible while another site's people continue working.
Hand off a repeatable check instead of a computer-specific workaround
A reviewer who changed their computer's hosts file can get a correct site while the normal college DNS name still goes elsewhere. A per-command override lets you show exactly which destination you intended to test. Verify the configured DNS path separately if it belongs to the deployment. Record the normal hostname, address seen by the client when relevant, and whether the request used an override. If the ordinary route and forced route disagree, one result can isolate the origin and the other can uncover a delivery requirement.
A long-lived workaround can obscure the next release. When another learner tests the site, they may use normal name resolution and receive a result that correctly differs from your special case. Avoid changing a workstation permanently just to make an isolated exercise pass. Temporary synthetic DNS mappings, scoped paths and private local listeners keep the observations portable. Close out the fixture, stop any local sample server you started, and remove only the disposable trees and response files from the exercise.
Before declaring a release ready, have the next person repeat one normal request for the intended audience. If the class uses a private audience, the test should come from a permitted private client. Have that reviewer report the matching status and public marker for the homepage and one nested resource. A generic load or screenshot hides default routing and missing assets. Two simple named responses often reveal the mistakes most likely to affect the student's first deployment.
Interview questions with explained answers
Why might a successful upload not change the website?
The transfer can write a private staging tree just as requested. The selected virtual host reads another directory. Verify the actual document root and returned release marker, then publish the approved files there through the site's process.
How do you avoid breaking another site when adding a vhost?
Choose a new owned config entry, unique hostname and prepared root. Retain the existing required fallback, back up the changed settings privately, validate the full config and test the new and control requests after activation.
How would you check an inaccessible public file with correct ordinary modes?
Confirm it is under the selected root and the request reaches the intended block. Inspect ancestor traversal, server authorization, worker context and relevant host-policy event. Compare actual and expected labels on an enforcing guest.
Which evidence shows that a stylesheet is serving CSS?
Request the exact resource URL from the document. Check its success status, CSS media type and a known CSS rule. Check cache or browser security policy if the content still isn't applied.
What makes an outage report useful?
It identifies the precise failing request, client and time, includes the observed error and one related control, and states the next piece of evidence or scoped correction needed. It avoids changing unrelated infrastructure speculatively.
Check your understanding
A transfer reports success and the homepage still has the previous date. What do you compare first?
Show answer
Compare the staged files with the active site's actual document root and body marker. A completed transfer does not select the new release.
The raw IP shows the default but the correct named request shows your invitation. Which site behaviour needs verification?
Show answer
Check the expected named response and keep the baseline fallback if it serves its intended purpose. The two requests tested different host values.
A web worker only needs to read one public file. Is setting the whole site to 0777 a reasonable first fix?
Show answer
No. Identify the exact path and authorization problem. The publisher and worker can have narrowly distinct permissions.
A body served as HTML says “Not found” with status 200. What needs comparison?
Show answer
Compare the missing-resource rule with the expected status and body. Error text alone does not create a valid 404 response.
After the new TLS config is loaded, which additional observation belongs in the acceptance note?
Show answer
Use the ordinary expected HTTPS name with a verifying client, confirm the served identity and chain, then check the desired HTTP status and content.
Practise catching mistakes in a candidate release
Write a manifest for a three-file notice and compare it with the temporary wrong public tree. Identify one missing path, one unapproved file and one changed body.
Give a partner one synthetic symptom from the chart and ask them to propose the smallest check that would distinguish two likely causes. Compare which changes each of you would defer.
Prepare rollout and rollback evidence for a changed root. Include the named test, control site and the asset and missing URL results you expect.
Revision cards
- Transfer and publication
- The received workspace and the server's selected release have different roles. Verify the root and bytes before declaring a rollout.
- Named route
- Send the expected hostname to the selected listener to distinguish a real site from its fallback.
- File manifest
- List approved paths and bytes, catch missing or extra files and preserve the intended route hierarchy.
- Scoped permission repair
- Map the exact request to the file and check worker traversal, server rules and host policy.
- Layered acceptance
- Verify local site identity, network delivery, TLS and significant public assets using their actual requests.
- Rollback evidence
- Restore the exact prior configuration or release and prove its behaviour with the same named probes and a control.
Official sources
- HTTP request and response semantics
- HTTP caching
- URL resolution rules
- Python local HTTP server
- Python replace operation
- Nginx virtual host selection
- Apache virtual host map
- Ubuntu Nginx include layout
- Ubuntu Apache site enablement
- Linux file path resolution
- SELinux denial investigation
- VPC security group scope
- Let's Encrypt ACME validation methods
- TLS identity verification
- Chrome network request evidence
- Curl request and status options