Okay, let's simplify. In lighttpd, I'm doing something like this: # Referer is example.com: $HTTP["referer"] == "http://example.com/" { # Request for a font: $HTTP["url"] =~ "\.(eot|otf|svg|woff|ttf)$" { # Set the header that Firefox requires to use the font: setenv.add-response-header = ( "Access-Control-Allow-Origin"by deanpence - Migration from Other Servers
Hi all, I'm actually migrating from lighttpd to nginx, and I'm trying to preserve some old conditionals. In lighttpd, I have something like this: $HTTP["referer"] =~ "^http://(labs\.|etc\.)example.com/" { $HTTP["url"] =~ "\.(eot|otf|svg|woff|ttf|ogg|oga|ogv|m4a|m4v|mp3|mov|mp4|mov)$" { setenv.add-response-header = ( "Access-Control-Alby deanpence - Migration from Other Servers
![]() |
![]() |
![]() |
![]() |
![]() |