Trying to get a simple subdomain redirect in NGINX to a URI/URL path. At this point I want to get nginx.somedomain.com to redirect permanently to nginx.somedomain.com/sample/redirection.html. The config below I have in the nginx.conf file but isn't working. I've restarted the server, but still no go. Specifically it errors out and shows this as invalid in the nginx.conf file. Where should this go and also is this even correct?
server {
server_name nginx.somedomain.com;
rewrite ^(.*) http://nginx.somedomain.com/sample/redirection.html permanent;
}
Thanks for any assist!