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 reinstalliTechGuides 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
Need a server to try this on? Antihost offers Linux VPS plans with NVMe storage, full root access and a 14-day free trial.
Use DocumentRoot when the subdirectory is physically inside the virtual host’s site tree. Use Alias when the URL path should point to a directory elsewhere on disk, and add a matching <Directory> block to authorize that target. The distinction determines how Apache maps /app/ to a filesystem path, which permissions apply, and where to look when a request returns 403 or 404.
Choose the mapping that matches your filesystem
Apache has two supported ways to serve a URL subdirectory. For a conventional site layout, place the directory below the virtual host’s DocumentRoot. Apache appends the requested URL path to that root unless another directive, such as Alias, overrides the mapping. If the application directory is stored somewhere else, map the public URL to it with Alias.
| Approach | Filesystem layout | Example URL mapping | Access-control scope | Best fit |
|---|---|---|---|---|
DocumentRoot |
The subdirectory is below the virtual host’s document tree. | /app/index.html maps to /srv/www/example/app/index.html. |
The site’s normal <Directory> policy covers the path. |
A conventional site whose public URL mirrors its directory structure. |
Alias |
The target is outside the virtual host’s document tree. | /app/index.html maps to /srv/apps/myapp/index.html. |
A separate <Directory> block must authorize the target path. |
Keeping a public URL stable while application files live elsewhere. |
The Apache documentation describes Alias as allowing documents to be stored in the local filesystem other than under DocumentRoot. In either design, the URL path and the filesystem path are separate concerns: the first identifies the request, while the second identifies the file Apache may read.
Questions to answer before editing
- Is the directory really inside the selected virtual host’s document tree, or is it mounted under another path?
- Should the public URL mirror the physical directory name, or must
/app/remain stable while files move? - Which virtual host owns the hostname and listening address?
- Does the directory need
.htaccessoverrides, or should they be disabled? - Which index filename should Apache try when a request names the directory itself?
Answering these questions prevents the common mistake of adding an alias for a directory that would be simpler and clearer below DocumentRoot, or changing DocumentRoot when only one URL prefix needs a different target.
#1 Best Overall
- 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:Upgraded 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.
- Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.
Make sure the request reaches the intended VirtualHost
A correct mapping in the wrong virtual host behaves like a missing mapping. For name-based virtual hosts, Apache first selects candidates by listening address and port, then compares the request hostname with ServerName and ServerAlias. If no hostname matches, the first virtual host for that address and port becomes the default.
Use an explicit hostname
Put an explicit ServerName in every name-based virtual host. If you use additional hostnames, list them with ServerAlias. The hostname in the browser must resolve to this server; creating a <VirtualHost> block does not create a DNS record.
Free tools Windows power users keep installed
One-click scans. No signup required.
Check address, port, and ordering
Confirm that the block listens on the address and port receiving the request, commonly *:80 for HTTP. When several virtual hosts share that address and port, verify their order and hostname declarations. A request with an unexpected or missing Host match can land in the first block instead of the one containing your subdirectory configuration.
Separate DNS from Apache configuration
Test name resolution independently from Apache. A hostname can resolve to an old server even when the new virtual-host file is syntactically correct. Conversely, a correct DNS record cannot make a request use a virtual host whose address, port, or hostname declarations do not match. Treat these as separate checkpoints.
Pattern A: serve a directory below DocumentRoot
Choose this pattern when the directory is part of the site’s normal tree. With DocumentRoot /srv/www/example, a request for /app/index.html resolves to /srv/www/example/app/index.html unless an alias or another mapping changes it.
1. Create the directory layout
For example, place the application’s public files like this:
Recommended Free Tools
/srv/www/example/
└── app/
└── index.html
The URL directory and the filesystem directory now have the same relative name. This arrangement is usually the simplest to move between servers because the site can be copied as one tree.
2. Configure the virtual host
<VirtualHost *:80>
ServerName example.com
DocumentRoot /srv/www/example
<Directory /srv/www/example>
Require all granted
AllowOverride All
</Directory>
</VirtualHost>
Require all granted is the Apache 2.4 authorization directive that permits access to the directory. AllowOverride All permits per-directory configuration in .htaccess files under this tree; use a narrower setting if the application does not need overrides.
Rank #2
- 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
3. Understand directory requests
When the request names a directory, such as /app/, Apache looks for a file listed by the configured DirectoryIndex directive. If an index file exists, Apache serves it. If no configured index is available, the result depends on the server’s directory-listing settings; it may be forbidden rather than displaying a listing.
When changing DocumentRoot is the wrong fix
Changing the root to /srv/www/example/app would make / point at the application directory, not merely make /app/ available. That can hide the rest of the site and alter every relative URL. Keep the parent as DocumentRoot when the application is one section of a larger site.
Pattern B: map a URL subdirectory with Alias
Use Alias when the public URL should remain /app/ but the files are stored outside DocumentRoot. The alias belongs inside the virtual host that should receive the request, and its destination needs a matching filesystem authorization block.
1. Store the application outside the document tree
/srv/apps/myapp/
└── index.html
This directory is independent of /srv/www/example. It can be maintained, deployed, or mounted separately while retaining the public URL used by clients.
2. Add the Alias and Directory sections
<VirtualHost *:80>
ServerName example.com
DocumentRoot /srv/www/example
Alias /app/ /srv/apps/myapp/
<Directory /srv/apps/myapp/>
Require all granted
AllowOverride None
Options FollowSymLinks
</Directory>
</VirtualHost>
A request for /app/index.html is mapped to /srv/apps/myapp/index.html. The <Directory> path is a filesystem path, not a URL path, so it must match the alias destination exactly (including the appropriate trailing slash convention).
3. Keep trailing slashes consistent
In this example, the URL-path part of the alias ends with /. Apache’s documented matching rule requires the requested URL to include that trailing slash for the slash-terminated alias to match. Test both /app and /app/; do not assume they are interchangeable. Requests for files below the directory, such as /app/index.html, should then be tested separately.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitchesA slash mismatch can look like a 404 even though the target directory and its permissions are correct. Record the exact URL used by the client, including the final character, when comparing a failing request with the alias declaration.
4. Restrict the target deliberately
Grant access only to the aliased directory, not to a broad parent such as /srv. Keep any authentication, IP restrictions, or other site-specific controls in the relevant directory or virtual-host policy. AllowOverride None prevents an unexpected .htaccess file in the external tree from changing behavior, while Options FollowSymLinks permits the symlink behavior specified for this example; enable only options the application requires.
Rank #3
- 【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.
How Apache resolves the URL
For a normal request, Apache takes the path portion of the URL and appends it to the selected virtual host’s DocumentRoot. Thus, with a root of /srv/www/example, /app/index.html becomes /srv/www/example/app/index.html. An Alias changes that rule for matching URL prefixes: the matched URL prefix is replaced by the alias destination, and the remainder of the URL is appended to that destination.
Aliases are evaluated in configuration order, and the first matching alias takes precedence. Put a more specific alias before a broader one. For example, if one rule handles /app/ and another handles a parent path that could also match it, the specific rule must appear first or requests may be sent to the wrong directory.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
URL prefix and filesystem target are not interchangeable
Alias /app/ /srv/apps/myapp/ contains two different namespaces. The first value is compared with the request URL; the second is looked up on the local filesystem. Writing a URL in the <Directory> block, or writing a filesystem path in the alias’s URL position, produces a configuration that does not express the intended mapping.
The remainder of the request is preserved. Therefore, /app/css/site.css resolves below the alias destination as /srv/apps/myapp/css/site.css. A known-file test is useful because it verifies both the prefix replacement and the appended remainder.
DocumentRoot versus Alias in day-to-day operation
DocumentRoot is usually easier to understand, copy, and troubleshoot when the public URL structure follows the directory structure. Its access policy can cover the whole site tree, and moving the site generally means moving one directory.
Alias adds an intentional indirection. It is useful when deployments, mounts, or application ownership require files outside the document tree, or when the public URL must remain /app/ despite a different physical location. That flexibility also creates another configuration boundary: the alias must be in the selected virtual host, its destination needs its own <Directory> policy, and alias order can affect the result.
| Decision factor | DocumentRoot | Alias |
|---|---|---|
| Filesystem location | Inside the document tree. | Outside the document tree. |
| URL-to-path clarity | Usually direct and predictable. | Explicit mapping is clear once documented, but adds indirection. |
| Access scope | Often inherited from the site’s directory policy. | Requires a narrowly matched destination policy. |
| Portability | Often easiest to copy between environments. | Depends on the external path existing and being authorized in each environment. |
| Troubleshooting effort | Fewer mapping layers. | Check vhost selection, alias order, slash convention, destination authorization, and permissions. |
Filesystem permissions and 403 responses
Apache needs more than a readable file. The account running Apache must be able to traverse every parent directory in the path and read the requested file. A missing execute (traverse) permission on any parent can produce 403 Forbidden even when the file itself is world-readable.
- Check read permission on the requested file and execute permission on each parent directory.
- Check the
<Directory>block that covers the effective filesystem path, especially for an alias outsideDocumentRoot. - Confirm that authorization rules do not impose a higher-level restriction than
Require all granted. - Keep the permitted path as narrow as possible; do not solve a 403 by granting an unrelated filesystem parent.
An alias does not bypass filesystem permissions or Apache authorization. Both layers must allow the request.
Rank #4
- 【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.
Why an apparently correct Alias can still be forbidden
The alias may resolve to the expected path while the parent directory remains inaccessible to the Apache account. The destination may also be covered by a different or more restrictive directory rule than the one you edited. Compare the effective path with the exact <Directory> section, then inspect each parent directory’s traverse permission. Do not broaden authorization until you know which layer denied the request.
Directory indexes and listings
/app/ is a directory request, not a request for a particular file. Apache checks the configured DirectoryIndex names in that resolved directory. If none exists, directory-listing settings determine whether a listing is generated or access is denied. A successful response for /app/index.html therefore does not by itself prove that /app/ will display the expected page.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Test the directory URL and a known file independently. If the file works but the directory does not, inspect the index filename and directory-listing policy rather than changing the alias target.
Validate the configuration before testing in a browser
- Run
apachectl configtest. On installations that use thehttpdbinary directly, the equivalent ishttpd -t. Fix any syntax error before reloading Apache. - Inspect parsed virtual hosts with
apachectl -S. On Windows, usehttpd.exe -S. This output shows how Apache interpreted the address, port, hostnames, and configuration order. - Confirm DNS separately. Resolve the hostname and verify that it reaches the server whose configuration you edited.
- Request
/appand/app/, particularly when the alias URL ends in a slash. - Request a known file such as
/app/index.html. A known file distinguishes URL mapping problems from missing-directory-index behavior. - Inspect the access and error logs for the same request. The status code, selected host, and filesystem-related error usually identify the failing layer.
- Verify the effective filesystem path and permissions for every parent directory, not just the final file.
Run the checks against the hostname users actually request. Testing a server by address can select a different virtual host when hostname matching is involved, so a successful response from one host value does not prove that the intended name-based vhost is correct.
Troubleshoot common failures
| Symptom | Checks | Likely correction |
|---|---|---|
| 404 Not Found | Check spelling of the URL prefix and destination, confirm the alias is inside the virtual host receiving the request, and review alias ordering. | Correct the path, move the rule into the selected virtual host, or place a more specific alias before an earlier broader match. |
| 403 Forbidden | Inspect the matching <Directory> authorization, Apache’s ability to traverse every parent directory, and any higher-level access restriction. |
Add or correct the narrowly scoped authorization block and filesystem permissions; do not grant an unnecessarily broad directory. |
| The wrong site is served | Verify DNS, the request hostname, ServerName, ServerAlias, the virtual-host address and port, and block order. |
Point DNS to the correct server, correct the hostname declarations, or reorder/fix the virtual hosts so the request matches the intended block. |
| A directory listing appears instead of an index | Check the configured DirectoryIndex name and whether that file exists in the resolved directory. |
Add or correct the index filename, or apply the site’s intended directory-listing policy. |
/app and /app/ behave differently |
Review whether the alias URL-path ends in / and test the exact requested spelling. |
Use a consistent slash convention and request the slash-terminated URL required by the alias rule. |
| Unexpected rewrite behavior | After confirming the correct virtual host, inspect rewrite rules and any .htaccess files affecting the request. |
Adjust or isolate rewrite rules so they do not remap the aliased or document-root path unexpectedly. |
Rewrites, .htaccess, and aliases
Resolve the virtual host and URL-to-filesystem mapping first, then investigate rewrites. A rewrite rule in the selected virtual host or an allowed .htaccess file can change the request after the initial mapping and make a correct alias appear broken. In the external-directory example, AllowOverride None removes .htaccess as a source of changes for that directory; in the document-root example, AllowOverride All intentionally allows it.
Keep the responsibilities distinct: DocumentRoot establishes the default URL-to-path relationship, Alias creates an exception for a URL prefix, <Directory> controls access to the resulting filesystem path, and rewrite directives can subsequently alter request handling.
Choose AllowOverride intentionally
AllowOverride All is convenient when an application supplies its own .htaccess, but it also permits per-directory files to affect requests throughout that tree. AllowOverride None makes the external example predictable by keeping those files from changing behavior. Select the setting based on the application’s requirement, not as a generic fix for a 404 or 403.
Deployment checklist
- Decide whether the physical directory is inside or outside
DocumentRoot. - Declare the intended
ServerNameand confirm DNS points to this server. - Use a matching
<Directory>policy for the effective filesystem path. - For an external directory, add
Aliasinside the correct<VirtualHost>. - Keep alias and request trailing slashes consistent.
- Place more specific aliases before broader aliases.
- Check Apache syntax and parsed virtual hosts before reloading.
- Test both directory and known-file URLs, then read access and error logs.
- Verify read and traverse permissions on the complete filesystem path.
- Review
DirectoryIndex, rewrite rules, and.htaccessonly after the basic mapping works.
For a subdirectory that naturally belongs to the site tree, DocumentRoot is the simpler and more portable choice. When the public URL must point to files stored elsewhere, use Alias with a narrowly scoped, matching <Directory> block and validate the virtual-host selection, slash convention, and filesystem permissions together.
Best Value
- 【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.
Frequently Asked Questions
Should I change DocumentRoot to serve /app/?
Only if the entire site should use that directory as its root. If /app/ is one section below the existing site tree, keep the parent as DocumentRoot and place the files in its app/ subdirectory. Changing the root changes what the site’s / URL serves.
When should I use Alias instead of DocumentRoot?
Use Alias when the files are outside the virtual host’s DocumentRoot or when the public URL must stay /app/ while the physical directory has another location. Add a matching
Why does an Alias return 403?
Check Require authorization for the exact destination, read permission on the file, and execute (traverse) permission on every parent directory. A higher-level restriction can also deny access. Do not grant a broad parent merely to make the error disappear.
Why does /app work differently from /app/?
A slash-terminated Alias URL-path requires the requested URL to include the trailing slash for that alias to match. Test both spellings and keep the declaration and client URLs consistent.
Why is my Alias returning 404?
Verify the URL prefix and filesystem destination, confirm the Alias is in the VirtualHost that received the request, and check configuration order. Apache uses the first matching alias, so a broader earlier alias can capture the request.
How do I confirm which VirtualHost Apache selected?
Run apachectl -S, or httpd.exe -S on Windows. Also verify DNS, the request hostname, ServerName, ServerAlias, and the address and port in the VirtualHost declaration.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Why do I see a directory listing instead of index.html?
A directory request uses the configured DirectoryIndex names. Check that the expected index file exists in the resolved directory and review the site’s directory-listing settings if no index is found.
Can .htaccess make a correct Alias appear broken?
Yes. Rewrite rules or other allowed per-directory directives can change handling after the initial mapping. Confirm virtual-host selection and the basic URL-to-path mapping first, then inspect .htaccess and rewrite rules. AllowOverride None prevents .htaccess changes in the external-directory example.
The Bottom Line
Keep a normal subdirectory under DocumentRoot when its URL and filesystem location naturally match. Use Alias for an external target, authorize that exact target with <Directory>, keep slash conventions consistent, and verify virtual-host selection, alias order, indexes, logs, and complete filesystem permissions before widening access.
Quick 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.
Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Clear out junk files and repair common Windows errors3Scan for outdated or missing drivers - takes under a minute

