Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

On a standard Debian or Ubuntu Apache2 installation, replace the welcome page by creating or editing /var/www/html/index.html. Apache serves that file for the site root when the active virtual host uses /var/www/html as its DocumentRoot and index.html is first among the configured directory-index filenames. If your request is handled by another virtual host, put the file in that host’s document root instead.

How Apache chooses the page at the site root

A browser request for https://example.com/ does not point directly to a filename. Apache first selects a virtual host, reads that host’s DocumentRoot, maps the URL path into that directory, and then decides which file should answer a directory request.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

With the packaged Debian or Ubuntu site, the mapping normally looks like this:

Request Typical filesystem result Directive involved
/ /var/www/html/ DocumentRoot, then DirectoryIndex
/work/ /var/www/html/work/ DirectoryIndex inside that directory
/about.html /var/www/html/about.html DocumentRoot only

When the URL identifies a directory, Apache’s mod_dir module checks the names listed by DirectoryIndex. Apache documents index.html as its default. Ubuntu’s packaged configuration in /etc/apache2/mods-available/dir.conf starts with index.html index.cgi index.pl index.php index.xhtml index.htm. Apache returns the first name in that order that actually exists.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.

First identify the virtual host and DocumentRoot

Do not assume that the file you edit is the file Apache serves. Multiple sites can run on one server, and each virtual host can have a different root directory. The request’s hostname, port, and virtual-host configuration determine which tree Apache uses.

Check the packaged default site

On a basic Ubuntu installation, the default virtual-host file is commonly /etc/apache2/sites-enabled/000-default.conf. Open the active configuration and find its DocumentRoot line. If it says /var/www/html, the replacement file belongs at /var/www/html/index.html.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The filename under sites-enabled is only a common default, not a guarantee. A server administrator may have enabled another site, changed the file, or configured a separate name-based virtual host. Always use the DocumentRoot belonging to the host name you are testing.

Use the hostname you intend to serve

After editing, request the site with the same host name that selects the virtual host. Testing an IP address, an alternate host name, or a different port can legitimately show another site’s page even when your new file is correct.

Replace the default page in the standard location

This is the shortest procedure when the active virtual host already points to /var/www/html.

Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
  1. Back up the shipped page. Copy the existing /var/www/html/index.html to a dated backup outside the web root. Keeping the backup outside the served directory prevents visitors from downloading an old copy as another web page.
  2. Create a complete HTML document. Edit /var/www/html/index.html and write the markup you want visitors to receive. Keep the exact lowercase filename index.html; Linux filenames are case-sensitive.
  3. Save the file in the active root. Do not place it in your home directory, in /var/www without checking the root, or in a similarly named folder unless the virtual-host configuration points there.
  4. Request the root URL. Open the intended host name and request /. A direct request for /index.html is also useful because it tests the file itself rather than directory-index selection.

Debian’s packaged welcome page explicitly tells operators to replace /var/www/html/index.html before continuing to operate the HTTP server. Replacing that file is therefore the normal way to remove the packaged welcome content on the default site.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use a custom document root instead

A custom root is appropriate when your site files belong in a project directory rather than the distribution’s default tree. The process has two parts: change the active virtual host’s DocumentRoot, then make sure Apache is permitted to serve that directory.

Change the virtual host

In the configuration for the host receiving the request, change DocumentRoot from /var/www/html to your chosen directory. Put your page at the new root’s index.html. For example, if the root is /srv/example-site, the home page path is /srv/example-site/index.html, not /srv/example-site/home/index.html unless the URL also includes /home/.

Permit access to the new directory

Debian notes that a document root outside the usual location may also need an appropriate directory rule in /etc/apache2/apache2.conf. A root under /srv, for example, must be allowed by Apache’s configuration before the server can return its files. The exact rule depends on the existing configuration; do not remove unrelated access controls just to make the page appear.

Compare the two setups

Characteristic Keep the packaged root Use a custom root
HTML location /var/www/html/index.html index.html directly inside the configured custom root
Virtual-host edit Usually unnecessary if the default site is active Required: change the active host’s DocumentRoot
Access configuration Normally covered by the distribution’s defaults May require permission in /etc/apache2/apache2.conf
Main diagnostic risk Another virtual host may be serving the request Wrong root or a denied custom directory can both produce failure

Understand and set DirectoryIndex correctly

The presence of an index.html file is not sufficient if another configured index name comes earlier and also exists. Apache checks the list from left to right and serves the first matching resource.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black | LED mouse pad with 14 lighting modes, covers keyboard & mouse, anti-slip rubber base, waterproof surface, USB powered
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.

Ubuntu’s packaged list begins with:

DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm

With that order, an existing index.html wins over an existing index.php. If an administrator has changed the order, a different file may be returned. A file named Index.html, home.html, or default.html is not a substitute unless that exact name appears in the configured list.

When you need a different home-page filename

If you intentionally want another name to be the directory’s home page, add or reorder that name in the applicable DirectoryIndex configuration. Make the change in the scope that serves the site, then run Apache’s configuration test before reloading. For the standard replacement described here, keeping index.html first is the least surprising arrangement.

Do not enable directory listings as a workaround

If none of the configured index resources exists, Apache generates a directory listing only when Options Indexes is enabled. Ubuntu cautions that directory listings generally should not be enabled on a public DocumentRoot. A listing exposes filenames instead of providing a deliberate home page, so create the intended index file or correct the index configuration rather than turning listings on merely to avoid an error.

Validate the configuration and reload Apache

Editing only an HTML file normally does not require a configuration reload, but changing a virtual host, DocumentRoot, directory access rule, or DirectoryIndex does. Validate before applying those changes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Run the distribution’s Apache configuration test. On Debian-family systems this is commonly exposed as apachectl configtest or apache2ctl configtest. Use the command provided by your installation and correct every reported syntax error before proceeding.
  2. Reload the service after configuration changes. A reload applies the new configuration without rebooting the machine. Follow your distribution’s service-management convention; a full reboot is not required for a normal Apache reload.
  3. Test both URL forms. Request /index.html to verify the file and request / to verify directory-index processing.
  4. Test the correct host name. If several virtual hosts exist, use the host name that should receive the request. Otherwise you may be validating another site.

A successful configuration test does not prove that the intended virtual host was selected. It only establishes that Apache can parse the configuration. The URL, host name, root directory, filename, and index order still determine the response.

Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Why the old Apache welcome page is still visible

You edited the wrong file

The most common cause is a different active virtual host. Apache serves the file under the selected host’s DocumentRoot, not necessarily the default /var/www/html. Recheck the host configuration and the hostname used in your browser or HTTP client.

The filename or capitalization is wrong

Apache’s directory-index matching is ordered and exact. Index.html, index.htm, and home.html are different names. Confirm that the file is exactly index.html and is located immediately inside the active document root.

A different index file takes precedence

Look for another candidate named earlier in DirectoryIndex. If that file exists, Apache is behaving as configured. Remove the unintended candidate or put index.html first in the applicable list.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The custom root is not permitted

A DocumentRoot outside the normal location may be blocked by Apache’s directory access rules. Check the relevant section of /etc/apache2/apache2.conf and the virtual-host configuration. Do not solve this by broadly permitting unrelated filesystem trees.

No index file exists

If every configured index candidate is absent, Apache cannot select a home page. Depending on the options, the result may be a denied request or a directory listing. Create the intended file in the root and leave public directory indexing disabled unless you have a specific, controlled reason to expose listings.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.

A browser or proxy is showing a cached response

A stale cached response can make a successful edit look ineffective. Compare a fresh request, inspect response headers, and check the server’s logs before changing Apache settings. A direct request for /index.html helps distinguish cached directory behavior from a file or virtual-host problem.

Practical checks before declaring the change complete

  • The request is made with the intended hostname and port.
  • The selected virtual host’s DocumentRoot is known.
  • The new file is named exactly index.html and is directly inside that root.
  • The HTML file was backed up before replacement.
  • The configured DirectoryIndex list is understood, including any earlier existing file.
  • A custom root, especially one under /srv, is permitted by Apache configuration.
  • Configuration syntax passes the distribution’s test after configuration edits.
  • Apache was reloaded after configuration edits.
  • Both / and /index.html were tested with the intended hostname.
  • Any apparent old response was checked against fresh requests, headers, and logs.

What changes when you add subdirectories

Each subdirectory is mapped beneath the same document root. If the root is /var/www/html, a request for /work/ maps to /var/www/html/work/. Apache then applies DirectoryIndex within work; it does not automatically reuse the root’s index.html from the parent directory.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

That means a project can have /var/www/html/index.html for the site home page and /var/www/html/work/index.html for the /work/ page. If the subdirectory lacks a matching index file, the same missing-index and directory-listing rules apply there.

Minimal decision guide

Your situation Action
The active host uses /var/www/html and you only need a new home page Back up and replace /var/www/html/index.html.
The request is handled by another virtual host Find that host’s DocumentRoot and place index.html there.
You want files under a project-specific directory Change the active host’s DocumentRoot, place the file in the new root, and permit that directory when required.
The direct file URL works but / does not Inspect DirectoryIndex, filename case, and earlier index candidates.
Neither URL shows the new page Check virtual-host selection, the configured root, custom-directory access rules, and caching.

Frequently overlooked details

The default page is not a special Apache object. It is an ordinary file selected by ordinary configuration. Replacing it works only when the file is in the directory Apache mapped for that request and its name appears in the directory-index list. Conversely, changing an HTML file cannot correct a request that is reaching a different virtual host.

Keep those two layers separate while troubleshooting: first establish which virtual host and document root received the request; then establish which index filename Apache selected inside that root. This order avoids changing unrelated Apache settings when the problem is simply the wrong file or hostname.

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.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.