# Configuration assistance with http redirect to a file share

**URL:** <https://www.ruby-forum.com/t/configuration-assistance-with-http-redirect-to-a-file-share/205750>\
**Category:** NGINX\
**Created:** [April 14, 2011, 9:43pm UTC](https://www.ruby-forum.com/t/configuration-assistance-with-http-redirect-to-a-file-share/205750 "2011-04-14T21:43:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [April 14, 2011, 9:43pm UTC](https://www.ruby-forum.com/t/configuration-assistance-with-http-redirect-to-a-file-share/205750/1 "2011-04-14T21:43:18Z")

</div>

Hi,  
I have an application that makes download requests to the microsoft  
website for patches from time via http. What i’d like to accomplish is  
for the application’s requests for patches to be redirected to a file  
share that resides on our internal network that contains all of the  
patches instead of microsoft’s website.

For example, if my application determines that it needs to download the  
following patch: WindowsServer2003-KB914961-SP2-x86-ENU.exe. Typically,  
it would make this request by visiting the follow microsoft url to  
download the patch:  
[http://www.microsoft.com/downloads/info.aspx?na=41&SrcFamilyId=95AC1610-C232-4644-B828-C55EEC605D55&SrcDisplayLang=en&u=http%3A%2F%2Fdownload.microsoft.com%2Fdownload%2F5%2Ff%2F1%2F5f104409-2736-48ef-82e1-692ec3da020b%2FWindowsServer2003-KB914961-SP2-x86-ENU.exe](http://www.microsoft.com/downloads/info.aspx?na=41&SrcFamilyId=95AC1610-C232-4644-B828-C55EEC605D55&SrcDisplayLang=en&u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2f5%2ff%2f1%2f5f104409-2736-48ef-82e1-692ec3da020b%2fWindowsServer2003-KB914961-SP2-x86-ENU.exe)  
.

Instead, i’d like to configure my application to forward its request to  
the nginx proxy nad have nginx to this request and allow the application  
to seemlessly obtain the patch from a file share such as:  
\remotestorageserver\microsoft\patches\WindowsServer2003-KB914961-SP2-x86-ENU.exe,  
while allowing all other http requests not meeting the criteria  
forwarded during normal http.

I’ve looked around at the example config files and read docs for nginx  
but I’m not having any success. I would appreciate a sample one that  
performs a similar task if that exists to get me on the right track.

Posted at Nginx Forum:

> **[configuration assistance with http redirect to a file share](https://forum.nginx.org/read.php?2,191375,191375#msg-191375)**
>
> Hi, I have an application that makes download requests to the microsoft website for patches from time via http. What i'd like to accomplish is for the application's requests for patches to be redirected to a file share that resides on our internal...
