hopefully someone can help, i've been trying to set up nginx with virtual hosts but the default host always overrides any of the others that i specify. here is my config file found in /etc/nginx/sites-enabled server { listen 80; server_name sub.example.com; return 404; } server { listen 80 default; server_name *.example.com; return 501; } and the access.by antjkennedy - Nginx Mailing List - English