<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I am using an internal content repository which does not use the filenames to store the content but just numbers. So e.g. malte.gif would be 23/34/233401 in the file system.<div><br class="webkit-block-placeholder"></div><div>My OpenACS application picks this up easily because it knows the mime_type, the file_name and the location from the database.</div><div><br class="webkit-block-placeholder"></div><div>My question now is though, would it be possible to have an internal location, which not only accepts the file path, but also the file_name and mime_type and return that correctly to the user? So my webserver could redirect with X-Accel-Redirect to "/files/23/34/233401?file_name=malte.gif&amp;mime_type=image/gif" and nginx would deal with correctly returning the file?</div><div><br class="webkit-block-placeholder"></div><div>Maybe I am asking too much, but <a href="http://blog.kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/">http://blog.kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/</a> brings me already half way.</div><div><br class="webkit-block-placeholder"></div><div>Alternatively I could always use proxy_store, though I am not sure if it handles fine the fact that I would access a file e.g. /images/233401 and my server returns malte.gif, I probably need to test that.</div><div><br class="webkit-block-placeholder"></div><div>Cheers</div><div> Malte</div> <div><div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">-- </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">cognovís GmbH &amp; Co. KG</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Eduardstrasse 46-48</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">20257 Hamburg</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Phone: +49 (40) 553 70 83</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Fax: +49 (40) 5537084</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Internet: <a href="http://www.cognovis.de">http://www.cognovis.de</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Skype: sussdorff</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Geschäftsführer Malte Sussdorff</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Amtsgericht Hamburg, HRA 101328</div><br class="Apple-interchange-newline"></span> </div><br></div></div></body></html>