What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
To serve an HTML file from /var/www/html, place the file in that directory, run a web server such as Apache HTTP Server or NGINX, and open the matching URL. The conventional homepage is /var/www/html/index.html, available at http://localhost/ or http://127.0.0.1/.
Need a server to try this on? Antihost offers Linux VPS plans with NVMe storage, full root access and a 14-day free trial.
/var/www/html is a filesystem directory, not a URL. The browser requests a path, and the server maps that path beneath its configured document root. If the file is named about.html, the usual address is http://localhost/about.html.
As an Amazon Associate I earn from qualifying purchases.
What /var/www/html represents
A web server has a directory from which it reads files for HTTP requests. Apache calls this directory DocumentRoot; NGINX calls it root. On a standard Ubuntu setup, both servers can use /var/www/html as that directory.
The directory itself never appears in the browser address. Instead, the server removes the host and leading URL path from the request, appends what remains to the configured root, and looks for a file on disk. This is why a request for http://localhost/about.html normally reads /var/www/html/about.html.
#1 Best Overall
- [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
- [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
- [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
- [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
- [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.
A request for a directory can resolve to an index file. Apache documents the conventional behavior this way: “Typically, a document called index.html will be served when a directory is requested without a file name being specified.” NGINX provides equivalent behavior through its index setting.
Prepare the file and directory
Use the conventional homepage name
Create or copy the page as /var/www/html/index.html when it should open at the site root. A minimal file is enough to test the server:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test page</title>
</head>
<body>
<h1>It works</h1>
</body>
</html>
Save that content as /var/www/html/index.html. If you cannot write directly to the directory, create the file in your home directory and copy it with administrative privileges, or edit it through a root-capable editor. Do not confuse a filename such as index.HTML with index.html; on a typical Linux filesystem, letter case matters.
Place additional pages under the root
For a page called about.html, use /var/www/html/about.html and request http://localhost/about.html. For a subdirectory page, create /var/www/html/work/guppies.html and request http://localhost/work/guppies.html. If /var/www/html/work/index.html exists, http://localhost/work/ can serve that index file.
Serve the files with Apache
Confirm that Apache is running
Apache must be installed and active before a browser can retrieve the file. On Ubuntu, check the service with:
sudo systemctl status apache2
If it is installed but stopped, start it and arrange for it to start at boot:
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →sudo systemctl enable --now apache2
Opening http://localhost/ should now cause Apache to look for its configured index file beneath its DocumentRoot. In the default Ubuntu configuration, that root is commonly /var/www/html.
Rank #2
- 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
- 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
- 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
- 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
- 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.
Verify Apache’s active document root
A default page can appear even when your file exists. That usually means the request reached a different enabled virtual host, or the active virtual host points to another directory. Inspect the enabled site configuration and find the DocumentRoot directive. Confirm that it names /var/www/html, then verify that the requested filename exists below that directory.
On a conventional Ubuntu installation, the default virtual-host files are under /etc/apache2/sites-enabled/; the exact enabled file can vary after administration changes. Use Apache’s configuration test before reloading:
sudo apachectl configtest
A successful test reports that the syntax is acceptable. If it reports an error, correct that configuration problem before applying it.
Apply Apache configuration changes
Adding or editing an HTML file normally needs no service restart. Apache reads the file when it receives the request. If you changed a virtual-host or server setting, reload Apache so it rereads the configuration:
sudo systemctl reload apache2
A full restart is appropriate when a reload is unavailable or when you intentionally need to stop and start the service:
sudo systemctl restart apache2
Serve the files with NGINX
Confirm that NGINX is running
Check the NGINX service:
sudo systemctl status nginx
Start it and enable it for future boots when necessary:
sudo systemctl enable --now nginx
NGINX uses the root directive to choose the filesystem directory used to search for a requested file. Its default Ubuntu server block commonly uses /var/www/html, but an administrator may have changed it.
Free tools Windows power users keep installed
One-click scans. No signup required.
Rank #3
- [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
- [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
- [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
- [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
- [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by
Check the server block and index setting
Inspect the enabled server-block configuration and confirm two settings:
root /var/www/html;points to the directory containing the files.index index.html;includes the homepage filename you actually created.
NGINX appends the request URI to the directory named by root. Therefore, a request for /fish/guppies.html is searched as /var/www/html/fish/guppies.html when that is the active root.
Before applying a configuration edit, test it:
sudo nginx -t
Fix any syntax or path error reported by the test. Then reload NGINX:
sudo systemctl reload nginx
A restart is available when a complete service restart is required:
sudo systemctl restart nginx
Choose the URL for a particular file
| Filesystem path | Typical request URL | What must be true |
|---|---|---|
/var/www/html/index.html |
http://localhost/ |
The active server uses /var/www/html and its index list includes index.html. |
/var/www/html/about.html |
http://localhost/about.html |
The spelling and letter case in the URL match the filename. |
/var/www/html/work/index.html |
http://localhost/work/ |
The directory exists and the server is configured to serve an index file. |
/var/www/html/work/guppies.html |
http://localhost/work/guppies.html |
The intermediate directory and file are present below the active root. |
Replace localhost with 127.0.0.1 for the same computer. From another device on the same network, use the server’s reachable IP address instead, provided the service is listening on that interface and the firewall permits the connection. A local URL does not automatically make a page publicly reachable on the Internet.
Understand directory and file mapping
Directory requests
When the request ends in a slash, the server treats it as a directory request. It checks the configured index-file list for a file inside that directory. Thus, http://www.example.com/work/ can resolve to /var/www/html/work/index.html when that file exists and the server’s root is /var/www/html.
File requests
When the request contains a filename, the server appends that path to the root and looks for the resulting file. A request for /fish/guppies.html maps to /var/www/html/fish/guppies.html under the same root. The URL path is relative to the root; it is not an absolute Linux path.
Rank #4
- Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
- Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
- All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
- Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
- Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.
Trailing slashes and case
Use a trailing slash for a directory URL, such as /work/, and include the exact filename for a file URL. Linux usually distinguishes About.html, about.html, and ABOUT.HTML. A mismatch produces a missing-file response even though a similarly named file is visible in the directory.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallTroubleshoot the common responses
The browser shows a default Apache or NGINX page
A default page generally proves that an HTTP server answered, but not that it used your intended file. Check these possibilities in order:
- Confirm the file is really at
/var/www/html/index.html, not in a similarly named directory. - Inspect the active Apache virtual host’s
DocumentRootor the active NGINX server block’sroot. - Check whether another enabled virtual host or server block is selected for the hostname you entered.
- Reload the server after configuration changes and then refresh the browser.
If the server is configured for a different root, either move the file into that root or deliberately change the configuration to point at /var/www/html.
A 404 Not Found response
A 404 means the URL-to-file mapping did not find the requested path. Compare the URL with the filesystem path one component at a time:
- Check the hostname and path you typed.
- Check every directory name and filename for spelling and letter case.
- Confirm that the file is below the active document root rather than beside it.
- For a directory URL, confirm that the directory contains an index file listed in the server configuration.
- Verify that a rewrite or alternate server block has not changed the path being searched.
For example, http://localhost/about.html requires /var/www/html/about.html only when /var/www/html is the active root. If the root is /srv/site, the same URL searches /srv/site/about.html instead.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →A 403 Forbidden response
A 403 commonly indicates that the web-server process cannot traverse one of the parent directories or cannot read the requested file. Check permissions on the document root, each parent directory, and the HTML file. The service account must be able to traverse directories and read the file.
There is no single ownership arrangement that is correct for every installation. Avoid changing ownership blindly; first identify the account used by the running service and apply the least access necessary. Also check whether a security policy, filesystem mount option, or server rule is denying access.
Best Value
NGINX returns an error but the file exists
Inspect NGINX’s access and error logs while making a request. The access log shows what URL reached NGINX; the error log often identifies a root-path, permission, or index-resolution problem. On typical Ubuntu installations these logs are under /var/log/nginx/, although custom configurations can send them elsewhere.
Then test the active configuration with sudo nginx -t, confirm the root and index directives, and reload after correcting the issue.
Apache does not serve the edited configuration
Run sudo apachectl configtest and inspect which virtual host is enabled. A syntactically valid file is not necessarily the file Apache selected for your request. Confirm the hostname, port, and enabled-site selection, then reload Apache after the intended site is active.
Do not enable directory browsing casually
If a directory has no usable index file and directory indexing is enabled, the server may display a list of its contents. Ubuntu guidance warns that exposing directory contents is usually undesirable for a document root. Keep directory indexes disabled unless you have a specific, understood reason to publish a listing, and place a deliberate index.html in directories that should have a landing page.
Apache and NGINX at a glance
| Concern | Apache | NGINX |
|---|---|---|
| Document-root directive | DocumentRoot |
root |
| Common Ubuntu root for this task | /var/www/html |
/var/www/html |
| Homepage behavior | Serves a configured index file, conventionally index.html, for a directory request. |
Uses its index directive, commonly including index.html. |
| Apply configuration edits | sudo systemctl reload apache2; restart when a full restart is needed. |
sudo systemctl reload nginx; restart when a full restart is needed. |
| Configuration validation | sudo apachectl configtest |
sudo nginx -t |
| Failure investigation | Inspect the selected virtual host and Apache’s access/error logging. | Inspect the selected server block plus access and error logs. |
Do not run both servers on the same address and port without configuring that arrangement intentionally. If one service is already listening for HTTP requests, use it, stop the other, or assign distinct addresses or ports.
A repeatable verification checklist
- Confirm the intended file exists, for example
/var/www/html/index.html. - Confirm exactly one intended web server is active for the address and port you are testing.
- Check Apache’s
DocumentRootor NGINX’sroot. - Check the index-file setting when requesting a directory.
- Open
http://localhost/for the homepage or the relative URL for another file. - If the result is wrong, classify it as a default page, 404, or 403 before changing anything.
- Use the relevant configuration test and logs, correct the underlying path or permission issue, and reload the service.
Bottom line
Put the homepage at /var/www/html/index.html, make sure Apache or NGINX is actually using /var/www/html as its root, and open http://localhost/. Every other page follows the same rule: append its path relative to the document root. A default page points to the wrong enabled site or missing filename, a 404 points to a failed path mapping, and a 403 points to traversal or read access that the web-server process lacks.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errorsQuick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




