Welcome! Log In Create A New Profile

Advanced

Rewrites File

Posted by brendanb 
Rewrites File
October 02, 2012 06:39AM
Hi,

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

brendan
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: 279
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