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
Antihost offers Linux VPS plans with full root access, unlimited traffic on a 1 Gbps port and a 14-day free trial.
Point both domains’ A records—and their AAAA records if the VPS serves IPv6—to the VPS public address. Then configure your web server to recognize both hostnames. NGINX uses server_name; Apache uses ServerName and ServerAlias. Finally, install HTTPS coverage for every hostname that accepts secure connections and choose whether the second domain displays the same site or permanently redirects to one canonical domain.
Decide what “the same website” should mean
Two domains can reach the same files and application while following two different URL policies. Decide this before writing the server configuration because the policy changes your redirects, certificate names and application settings.
Keep both domains active
Both domains return the site directly. For example, example.com/about and second.example/about remain separate public URLs while reading from the same document root or application. This is useful when both names are intentional entry points, but it creates multiple public URLs for identical content. Your application may also need to understand both hostnames when generating links, cookies or absolute redirects.
Use one canonical domain
Make one domain the public address and send every request for the other domain to it with a permanent HTTP 301 redirect. A request for second.example/about should become https://example.com/about, preserving the path and query string. This gives search engines and users one durable URL while still allowing the alternate name to catch traffic.
#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.
| URL policy | Server layout | When to choose it | Main caution |
|---|---|---|---|
| Both domains serve content | One virtual host/server block lists every hostname | Both names are deliberately public entry points | Duplicate public URLs must be handled in the application and search strategy |
| One canonical domain | The alternate hostname has a redirect-only HTTP/HTTPS host; the canonical host serves the site | You want one public URL | The alternate hostname still needs DNS and a valid certificate before HTTPS redirects can work |
Prepare DNS at the authoritative provider
DNS determines which server receives a request; it does not select a website on that server. Apache’s documentation specifically notes that creating a virtual host does not create DNS entries. Complete the DNS work and the web-server work separately.
Create records for each hostname
| Hostname | Record | Value | Use when |
|---|---|---|---|
example.com |
A | VPS public IPv4 address | The VPS accepts IPv4 traffic |
www.example.com |
A | VPS public IPv4 address | You want the www name to work |
second.example |
A | VPS public IPv4 address | The second domain uses IPv4 |
| Each hostname | AAAA | VPS public IPv6 address | The VPS is configured to accept IPv6; omit this record if it is not |
Use the exact hostnames that people will enter. The bare domain, its www name and the second domain are different names and each must be covered by DNS and HTTPS if you intend to accept it. Do not publish an AAAA record merely because the VPS has an IPv6 address: an unreachable or misconfigured IPv6 service can make some visitors fail even while IPv4 works.
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 reinstallCheck that DNS reaches the VPS
After saving records, query each name from a machine outside the VPS. DNS caching means different networks can see the old answer for a while, according to the record’s TTL.
dig +short example.com A
dig +short second.example A
dig +short example.com AAAA
dig +short second.example AAAA
The returned addresses should match the VPS addresses you intend to serve. If a name returns an old address, an unexpected proxy address or nothing at all, fix DNS before troubleshooting NGINX or Apache. A server block cannot receive a request that never reaches the server.
Configure NGINX for both domains
NGINX chooses a server block using the request hostname and the server_name directive. Put every hostname that should serve identical content in the same block.
Serve both names from one NGINX block
server {
listen 80;
server_name example.com www.example.com second.example;
root /var/www/site;
index index.html index.php;
# Add the location rules required by your application here.
# location / { ... }
}
Replace the example names and document root with your values. The server_name list must contain the bare names, www names and any other hostname you actually publish. If your application is proxied rather than served from files, keep the same hostname list and use the application’s existing location and upstream settings.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →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
Redirect the alternate domain instead
For a canonical-domain policy, give the alternate name its own port-80 block. The redirect keeps the original request path and query string through $request_uri.
server {
listen 80;
server_name second.example;
location ^~ /.well-known/acme-challenge/ {
root /var/www/site;
}
location / {
return 301 https://example.com$request_uri;
}
}
The canonical name gets the content-serving block. If you also publish www.example.com, decide whether it is canonical or another redirect source and configure it explicitly rather than relying on whichever block NGINX happens to select.
Add HTTPS server blocks
For names that remain active, the HTTPS block must list all of them and reference a certificate whose name coverage includes all of them.
server {
listen 443 ssl;
server_name example.com www.example.com second.example;
ssl_certificate /path/to/certificate.pem;
ssl_certificate_key /path/to/private-key.pem;
root /var/www/site;
# Existing application location rules go here.
}
If the second domain redirects, use a separate HTTPS block for it that returns a 301 to the canonical HTTPS URL. It still needs a certificate matching the alternate hostname; browsers establish TLS before they can receive the redirect.
Free tools Windows power users keep installed
One-click scans. No signup required.
NGINX uses TLS Server Name Indication (SNI) to select among certificates on one IP address. SNI does not repair an incomplete configuration: the client-supplied hostname, server_name value and certificate names must agree.
Test and reload safely
- Run
nginx -tand correct every syntax or file-permission error it reports. - Reload only after the test succeeds, using your operating system’s service manager, for example
systemctl reload nginx. - Keep the previous working configuration available so you can restore it if the reload or a live request exposes an error.
Configure Apache for both domains
Apache’s name-based virtual hosting lets multiple hostnames share one IP address. Set the primary name with ServerName and additional names with ServerAlias.
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.
Serve both names from one virtual host
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com second.example
DocumentRoot /var/www/site
# Add the Directory, proxy and rewrite rules required by the site.
</VirtualHost>
The virtual host and DNS are separate requirements: this block tells Apache what to do after a request reaches the VPS, while A/AAAA records tell the internet where to send it. Enable the site according to your distribution’s Apache layout, then verify that the intended virtual host is the one Apache loads.
Redirect the alternate hostname
When only one public URL should remain, remove the alternate name from the content-serving host and create a redirect-only virtual host for it. Preserve the ACME challenge path on port 80 if your certificate process uses that path.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
<VirtualHost *:80>
ServerName second.example
RewriteEngine On
RewriteRule ^/.well-known/acme-challenge/ - [L]
RewriteRule ^/(.*)$ https://example.com/$1 [R=301,L]
</VirtualHost>
The exact rewrite and challenge handling can differ with your existing Apache modules and layout. The important behavior is that normal requests receive a permanent redirect while /.well-known/acme-challenge/ remains reachable for validation.
Configure Apache HTTPS coverage
Create an HTTPS virtual host for every hostname that accepts port 443 traffic. A content-serving host uses one ServerName, the required ServerAlias values and certificate directives whose certificate covers all listed names. A redirect-only HTTPS host uses the alternate name and returns the 301 to the canonical HTTPS URL.
<VirtualHost *:443>
ServerName example.com
ServerAlias www.example.com second.example
DocumentRoot /var/www/site
SSLEngine on
SSLCertificateFile /path/to/certificate.pem
SSLCertificateKeyFile /path/to/private-key.pem
</VirtualHost>
Use the certificate and key paths supplied by your TLS automation or certificate authority. Do not copy a certificate path from another server unless the file really exists on this VPS and its private key is protected.
Test and reload Apache
- Run the configuration test provided by your installation, commonly
apachectl configtestorapache2ctl configtest. - Resolve syntax errors, missing modules, unreadable certificate files and duplicate virtual-host problems before reloading.
- Reload Apache through the service manager only after the test reports success.
Enable HTTPS for every hostname
HTTPS coverage follows hostnames, not websites. A certificate for example.com alone does not cover second.example or www.example.com. Request a certificate containing every name that users can open over HTTPS, or use separate certificates with a layout that clearly assigns each certificate to the correct virtual host.
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.
| Certificate approach | Configuration implication | Operational trade-off |
|---|---|---|
| One certificate containing all accepted names | Reference the same certificate in the shared HTTPS host or the relevant hosts | Fewer certificate files, but every renewal must retain every required name |
| Separate certificates | Assign each certificate and key to the matching NGINX server block or Apache virtual host | Independent renewal, but more files and host-to-certificate mapping to maintain |
Keep port 80 available for validation
If your certificate authority validates ownership through /.well-known/acme-challenge/, do not redirect or block that path before validation can read the challenge file. You can redirect ordinary port-80 requests to HTTPS while allowing the challenge location to pass through to the directory used by your certificate process.
Check the certificate actually presented
Open each hostname with https:// and inspect the certificate’s subject alternative names in the browser. Test the canonical and alternate names separately. A successful page load is not enough if the browser silently reached a different hostname or cached an earlier certificate.
Validate the complete setup
Work from the network inward. This order prevents a web-server change from masking a DNS or certificate problem.
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 glitches- Resolve each name. Confirm A and, when intentionally used, AAAA answers point to the VPS.
- Test HTTP host routing. Request each hostname and verify that it either serves the intended site or returns the planned 301. A command such as
curl -I http://second.example/pathexposes the status andLocationheader without downloading the page. - Test HTTPS independently. Run
curl -I https://example.com/pathand the equivalent command for the second domain. Check for certificate errors, the expected status and the correct redirect target. - Inspect the certificate names. Every hostname accepted on port 443 must appear in the certificate’s name list.
- Test the server configuration before each reload. Use
nginx -tfor NGINX or the Apache configuration-test command for Apache. - Check both address families. If IPv6 is published, test from an IPv6-capable network as well as IPv4. An AAAA record can send visitors to a different listener or firewall path.
Troubleshoot common failures
The domain shows a registrar or old hosting page
The A or AAAA record is still wrong, cached or being overridden by another record. Query the authoritative DNS configuration and compare the answer with the VPS addresses. Do not change virtual-host files until the request can reach this server.
The correct site appears for one name but not the other
The hostname is missing from NGINX’s server_name list or Apache’s ServerAlias, or a different default host is catching the request. Add the exact name, test the configuration and reload. Also check that you are testing the same protocol: port 80 and port 443 use separate host definitions.
HTTPS reports a name mismatch
The certificate does not contain the hostname the browser requested, or the request reached a different HTTPS virtual host. Add the hostname to the certificate, assign that certificate to the matching host and verify SNI-based selection. A certificate for the canonical domain cannot by itself secure the alternate domain.
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.
The alternate domain redirects in a loop
Inspect the redirect target and the HTTPS host. The alternate HTTP and HTTPS hosts should point to the canonical HTTPS URL, while the canonical HTTPS host should serve content rather than redirect back. If a proxy or application also forces HTTPS, ensure it recognizes the original protocol correctly.
Certificate validation fails after adding a redirect
The redirect-only host is intercepting /.well-known/acme-challenge/, the challenge files are in the wrong document root, or port 80 is blocked. Restore a reachable challenge location, complete validation, then re-enable the normal redirect behavior.
IPv4 works but some visitors cannot connect
Check whether an AAAA record was published without a working IPv6 listener, firewall rule or web-server listen configuration. Remove the AAAA record until IPv6 is correctly served, or complete the IPv6 configuration and test it directly.
NGINX and Apache: which model fits?
| Concern | NGINX | Apache |
|---|---|---|
| Hostname selection | server_name determines the server block |
ServerName sets the primary name; ServerAlias adds names |
| Shared content | List all names in one server_name directive and use one root or upstream |
List aliases in one name-based VirtualHost |
| Canonical redirect | Use a redirect-only block with return 301 |
Use a redirect-only virtual host with the rewrite mechanism enabled |
| HTTPS selection | SNI selects the certificate and server block; certificate names must match | SNI selects the HTTPS virtual host; certificate names must match |
| Pre-reload check | nginx -t |
apachectl configtest or apache2ctl configtest, depending on installation |
The DNS design is identical for both servers: each public hostname must resolve to the VPS before name-based routing can work.
Extend the pattern beyond two domains
One VPS can host more than two domains using the same name-based approach. For every additional hostname, repeat the complete chain: create its DNS records, add it to the appropriate content or redirect host, include it in HTTPS certificate coverage, and test HTTP, HTTPS and IPv6 behavior if applicable. Keep a written list of accepted names so a renewal or configuration change does not silently omit one.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →When domains represent different sites rather than aliases, give each site its own root or upstream and its own hostname list. Sharing an IP does not require sharing files; the hostname is the selector that separates virtual hosts.
Practical completion checklist
- Both domains’ A records point to the VPS IPv4 address.
- AAAA records exist only for a functioning VPS IPv6 service.
- The chosen URL policy—both active or one canonical redirect—is documented.
- NGINX has the exact names in
server_name, or Apache has them inServerName/ServerAlias. - Every hostname accepted on port 443 appears in a certificate’s name list.
- The port-80 ACME challenge path remains reachable during certificate issuance and renewal.
- Configuration tests pass before reload.
- Each hostname has been tested over HTTP and HTTPS, including the expected redirect behavior.
- IPv4 and IPv6 have been tested separately whenever both records are published.
What to remember
DNS gets both names to the VPS; virtual-host configuration chooses what the VPS returns. NGINX makes that choice with server_name, while Apache uses ServerName and ServerAlias. HTTPS then adds a second matching requirement: the certificate and SNI-selected host must cover the hostname the visitor entered. Once those layers agree, serving one site from two domains—or redirecting one domain to the other—is a repeatable configuration pattern rather than a special VPS feature.
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.

