Here is my nginx virtual host configuration file like example.conf
server {
listen 80 default_server;
listen [::]:80 default_server;
.....................
} I want to add a rewrite rule like rewrite ^/api/iop/(.*)$ /api/iop/api.php last; in example.conf virtual host configuration file.But I don't want to change existing example.conf config file.I need rewrite rule workable from new config file with same virtual host.