drupal-with-nginx icon indicating copy to clipboard operation
drupal-with-nginx copied to clipboard

Language prefix with private file serving

Open dstotijn opened this issue 13 years ago • 2 comments
trafficstars

In drupal.conf, the location directive for private file serving doesn't match requests with a language prefix. I've fixed this by changing:

location ^~ /system/files/ {

to:

location ~* /system/files/ {

dstotijn avatar Oct 17 '12 09:10 dstotijn

This one also solved the problem for me.

1 year is quite some time for an one line issue. Is there something wrong with this regex change? Or should this be patched on your branch?

tcarmona avatar Mar 17 '14 15:03 tcarmona

It also solved my problems. Thanks a lot for the hint!

Adding a few keywords: i18n locale regex internationalization

siax84 avatar Feb 19 '15 13:02 siax84