1

Hi i have setup nginx and works fine. I have added some config to accept the subdomain and that is also working fine no problem.
My major concern is i have a meteor app that takes the username and creates nginx subdomain config in the fly. and currently i have listed * in my A/AAAA record in server so it accepts all subdomain.
now i wanna show different view if the user request the subdomain that is not created in nginx config. for eg, i have setup subdomain A,B in nginx config pointing different application
A.example.com //works fine
B.example.com //works fine

if i Enter
C.example.com // shows me welcome to nginx screen
I wanna show my custom page there
Thanks in advance

Piyush Thapa
  • 206
  • 1
  • 8

1 Answers1

0

This has nothing to do with Meteor, rather it is about setting up your nginx's default page. Try the below links

http://gpiot.com/blog/setup-default-server-landing-page-with-nginx/

NGinx Default public www location?

Community
  • 1
  • 1
Bala
  • 11,068
  • 19
  • 67
  • 120