Caching/storing hostname mapping?

graq nginx-forum at
Fri Mar 11 20:01:45 MSK 2011

I have some nginx configs that sometimes host mutiple domains and some
file requests are mapped to the disk using some language.

And example would be WordPress MultiSite. Where makes to blogs.dir/1/file1.jpg and maps to

These could be rewritting by hand individually to allow nginx to
naturally cache the file, rather than handing it over to WordPress (PHP)
map and server back to nginx.

Is there a way I can programmatically build these?

Posted at Nginx Forum:,182305,182305#msg-182305

More information about the nginx mailing list