Welcome! Log In Create A New Profile

Advanced

nginx config help

Posted by crazypie 
nginx config help
August 12, 2015 09:28PM
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
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 144
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready