Rewrites File
October 02, 2012 06:39AM

New to nginx and have a question about large amount of rewrites.

We have 100's of rewrites, instead of embedding these in the main .conf file. Can I include a file which contains these rewrites that can be looked up by nginx

Re: Rewrites File
October 02, 2012 08:40AM
Yes you can! You'll have to include the file in the right block ("http{}", "location{}", etc.)

e.g.: "include /etc/nginx/conf.d/rewrites.conf"
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 338
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready