Hello everyone I am just getting started on nginx on my new role. We already have existing nginx env and i had a task to migrate the document root of apache on a different server to nginx. The issue I am having is the apache server also has other virtual hosts that serves images from a different path. So when I give a generic location block in nginx like below
location ~* \.gif {
alias <my new path> ;
}
and also there is a existing location block where any "/" requests to go to apache now the issue is we are still not ready to completely stop the apache so I just want to serve the apache document root from nginx without effecting the other images being served by apache from a different location.
Since I am a newbie to nginx looking for some configuration help.
Thanks
location ~* \.gif {
alias <my new path> ;
}
and also there is a existing location block where any "/" requests to go to apache now the issue is we are still not ready to completely stop the apache so I just want to serve the apache document root from nginx without effecting the other images being served by apache from a different location.
Since I am a newbie to nginx looking for some configuration help.
Thanks