Answer by Michael Hampton for Splitting long lines in a nginx configuration file
I don't think you can do this.nginx treats all whitespace equally, so even if you tried to split your string like that, and nginx could parse it the way you intended, you would wind up with a regex...
View ArticleSplitting long lines in a nginx configuration file
In order to not pass garbage to the back-end, I have a strict regex for a location directive. It looks like this:location ^~ "/(some|stuff|more|bar|etc(-testing)?)/[a-zA-Z0-9]+/...(more|restrict).ext {...
View Article
More Pages to Explore .....