Welcome!
Log In
Create A New Profile
Home
>
Nginx Related Forums
>
How to...
> Topic
Advanced
Rewrites File
Posted by
brendanb
Forum List
Message List
New Topic
brendanb
Rewrites File
October 02, 2012 06:39AM
Registered: 11 years ago
Posts: 1
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
Reply
Quote
Wolfsrudel
Re: Rewrites File
October 02, 2012 08:40AM
Registered: 12 years ago
Posts: 22
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"
Reply
Quote
Newer Topic
Older Topic
Print View
RSS
Sorry, only registered users may post in this forum.
Click here to login
Online Users
Guests: 156
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024