I need a small help in writing nginx rule for redirecting a subfolder to subdomain as shown below
http://www.example.com/test to test.domain.com
Thanks
I need a small help in writing nginx rule for redirecting a subfolder to subdomain as shown below
http://www.example.com/test to test.domain.com
Thanks
If you are in the www.example.com virtual host just write this line in the config:
rewrite ^/test http://test.domain.com;