Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Default web server page showing (Apache/Nginx 'It works'): fix

OPS-011High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Every web server ships with a placeholder page. Apache shows 'It works!' or 'Apache2 Default Page'. Nginx shows 'Welcome to nginx!'. Others, such as IIS or LiteSpeed, have their own versions. You see it when the server answers a request but has no site matching the domain, or the matching site points at an empty or wrong folder.

Common causes of the default page
CauseWhat happened
Virtual host not enabledThe site config exists but was never enabled or the server was not reloaded.
Wrong server_name or ServerNameThe domain in the config does not match the one visitors use, so the default site answers.
Wrong document rootThe config points at an empty folder or the old /var/www/html.
Domain points at the wrong serverDNS or a migration sent traffic to a fresh server with only the default site.
Deploy wiped filesA release or restore removed the site and left the placeholder index file.
New domain or subdomain not addedA new host name was never added to the server config.

Why it costs you leads or sales

Visitors from ads, email and search land on a page with no form, no offer and no checkout. Most leave at once. Because the status is 200, simple monitors stay green and you can pay for ad clicks for days before anyone notices.

Where the funnel breaks
  1. Ad clickVisitor clicks your paid link
  2. Server respondsShows 'It works!' or 'Welcome to nginx!'
  3. Landing page and formNever shown
  4. Lead or saleNever happens

The server answers, but with the placeholder page, so every later step is lost.

A working server with the wrong page

The request succeeds, but the visitor sees a placeholder instead of your site.

How to check if your site has it

Check by hand
  1. Open the page in a private window

    Visit your homepage and each funnel URL. Look for 'It works!', 'Welcome to nginx!', 'Apache2 Default Page' or similar.

  2. Check the response body from the command line

    Run curl -s https://yourdomain.com/ | head -n 20 and look at the title and text.

  3. Compare the domain and the server IP

    Run curl -s -H 'Host: yourdomain.com' http://SERVER_IP/ . If this shows your site but the domain does not, DNS points at the wrong server.

  4. Test www, the bare domain and subdomains

    Only one host name may be missing from the config.

Quick test for placeholder textbash
curl -s https://yourdomain.com/ | grep -Ei "it works|welcome to nginx|apache2 (ubuntu )?default page" && echo "Default page detected"

How to fix it

The fix depends on your stack. Most managed platforms (Shopify, Wix, Squarespace, Webflow, GoHighLevel) never show a server default page; if you see one there, the domain is usually pointed at the wrong host. Fix DNS first.

Fix by platform
  1. Apache: enable your site

    Confirm a config exists with the right ServerName and DocumentRoot. On Debian/Ubuntu run: sudo a2ensite yoursite.conf, then sudo a2dissite 000-default.conf if needed.

  2. Apache: test and reload

    Run sudo apachectl configtest, then sudo systemctl reload apache2. Check with apachectl -S to see which virtual host answers each name.

  3. Nginx: check the server block

    Make sure server_name matches your domain and root points at your site folder. Link it with sudo ln -s /etc/nginx/sites-available/yoursite /etc/nginx/sites-enabled/ and remove the default link if it is not needed.

  4. Nginx: test and reload

    Run sudo nginx -t, then sudo systemctl reload nginx.

  5. Check the files

    Make sure index.html or index.php exists in the document root and the server user can read it.

Minimal Nginx server blocknginx
server {
    listen 80;
    server_name example.com www.example.com;
    root /var/www/example.com/public;
    index index.html index.php;

    location / {
        try_files $uri $uri/ =404;
    }
}

How to confirm it's fixed

Confirmation checklist
  • The homepage and every funnel URL show your real content in a private window.
  • The www, bare domain and any subdomains all load the right site.
  • curl output no longer contains 'It works', 'Welcome to nginx' or 'Apache2 Default Page'.
  • Forms, checkout and thank-you pages work end to end.
  • Tracking tags fire on the landing page.
  • Check again after clearing caches or CDN cache, as the placeholder can be cached.

How to prevent it happening again

Prevention
  • Keep server configs in version control and deploy them with the site.
  • Run config tests before every reload.
  • After a migration, test with the Host header against the new server before switching DNS.
  • Remove the default site and placeholder index files after setup.
  • When adding a domain or subdomain, add it to the server config at the same time.
  • Add a content check for your key pages, not only a status check.

How FunnelGuard handles this

FunnelGuard detects this issue only partly. It runs your real customer journeys on a schedule, and the default page is caught if the journey asserts expected text. For example, if a step expects your headline or a form label and the page shows 'Welcome to nginx!' instead, the step fails, the failure is re-checked from a second region, and you get one alert with a screenshot and a likely cause.

Status-only check vs text assertion

No text assertion

  • Page returns 200 OK
  • Check passes
  • Visitors see 'It works!'

Expected text asserted

  • Headline not found on the page
  • Step fails and is re-checked from a second region
  • One alert with screenshot

Questions people ask

Why is my website showing 'It works!' instead of my site?

It means the Apache server is running but has no site configured for your domain, or the site folder is empty or wrong. Check the virtual host's ServerName and DocumentRoot, enable it, and reload Apache.

Why does my domain show 'Welcome to nginx!'?

Nginx is answering with its default server block because no server_name matches your domain, or the root folder holds only the placeholder file. Add or fix the server block, link it into sites-enabled, run nginx -t and reload.

How do I remove the Apache or Nginx default page?

Point your virtual host or server block at your real site folder and delete the placeholder index.html. You can also disable the default site config, for example with a2dissite 000-default on Debian or Ubuntu.

Why does the default page appear after I migrated my site?

Usually DNS now points at the new server before the site config and files are in place. Add the server config and files first, test using the Host header, and only then change DNS.

Will uptime monitoring catch the default web server page?

Only if it checks page content. The default page returns 200 OK, so a status-only monitor shows green. A check that looks for expected text, like your headline, will fail.

Can the default page show only on www or only on a subdomain?

Yes. Each host name must be listed in the server config. If www or a subdomain is missing, the default site answers for it while the main domain works.

Does FunnelGuard detect the default server page?

Partly. It catches it when a journey step asserts expected text that the default page does not contain. Without that assertion, or on pages not in a journey, it may not be flagged.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: Caught if journey asserts expected text.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.