Question
Ignore fix subdomain and route to specific path
I am using Nginx. and I have domain ex:- example.com
and now what I want is I have to setup this rule in nginx.conf if anyone hit any other subdomain just like abc.example.com
then it will refer to example.com/sites/fivespan
except admin.example.com
, manage.example.com
, sync.example.com
, schedule.example.com
. be sure that it will not redirect to that URL. so how to do that and whats the syntax.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×