# Browser: Welcome to nginx! If you see this page, the nginx web server is successfully installed and working

**Code:** `Welcome to nginx! shown instead of my site` · **Category:** Nginx / Apache · **Seen on:** Nginx, Linux

Requests are served by the default server block, not your site's block.

## Meaning

Your server block isn't enabled (`sites-enabled` symlink missing), `server_name` doesn't match the Host header, the config wasn't reloaded, or the default site still takes `default_server`. Check `nginx -T | grep server_name`, enable the site, remove `default`, reload.

## Common causes

- Site config not symlinked in `sites-enabled`
- `server_name` doesn't match the domain
- Config not reloaded
- Default site marked `default_server`
- DNS pointing elsewhere/other host

## Quick fix

1. `sudo ln -s /etc/nginx/sites-available/app /etc/nginx/sites-enabled/`
2. Match `server_name` with the Host header
3. `nginx -t && systemctl reload nginx` and remove the default site

## Detailed fix by platform

### Linux

1. `curl -sI -H "Host: example.com" http://127.0.0.1/ | head -3`

## How to diagnose

1. **Enabled** — Symlink exists?
2. **Name** — server_name matches?
3. **Reload** — Done?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/nginx-apache/nginx-welcome-page-instead-of-site)
