On 22/03/13 14:11, Maxim Dounin wrote:
> This looks like valid regular expression (try pcretest if unsure), but
> from maintainability point of view I would recommend to use multiple
> normal prefix or exact match locations instead of trying to combine
> them into a single regexp.
Yes, you're probably right. Maybe I should just put all the repeated
stuff in a text file and use include on each location requiring it. I
guess an include file can contain another include directive. Easy enough
for me to try it out.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
> This looks like valid regular expression (try pcretest if unsure), but
> from maintainability point of view I would recommend to use multiple
> normal prefix or exact match locations instead of trying to combine
> them into a single regexp.
Yes, you're probably right. Maybe I should just put all the repeated
stuff in a text file and use include on each location requiring it. I
guess an include file can contain another include directive. Easy enough
for me to try it out.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx