I have a virtual private server with whm/cpanel. I have installed nginx_admin plugin. The plugin has created virtual host files (example.com, *.example.com and manage.example.com)
In my old apache configuration file
<IfModule mod_rewrite.c>
Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteCond %{HTTP_HOST} ([^.]+)\.example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/index.php?page=store&storeid=%1&subdomain=$1 [P]
</IfModule>
How can i configure nginx for this rewrite condition and rule?