Avatar of Mikrotiker
 asked on

Connecting web server to file server

Hello ,
I knew some file-sharing company have this solution but I don't know the design and topology for this scenario :

Web server ( <----> File server ( <-----> SAN server

So , the scenario as following : I have a file that I want to download ( which obviously located on the web server, but when I press the download button the download manger reads the URL ( .

Can Anyone please explain to me how they connect the web server with the file server ?

Thanks in advance for your time
StorageMicrosoft IIS Web ServerWeb Servers

Avatar of undefined
Last Comment

8/22/2022 - Mon

I suspect they are two different machines and they are not connected.

I suspect it works like this.  Your first link passes you the second link which is the actual location to the file.

It probably generates the second link by attaching 656524825 to the back of

I'm not quite sure if that is what you want.  But clarify if that is what you do or don't want.
David Johnson, CD

a link can point anywhere you want it to. In this case they may be using a virtual directory. A website does not have to exist under c:\inetpub\wwwroot

yes , that's exactly what happening , 2 IP address means 2 machines  , but how they are connected  ?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.

Ok then , If i'm using Apache web server with some file sharing script on the first machine ( , then what possibly can I use on the second machine ( which operate as file server and attached to a SAN ?
David Johnson, CD

but how they are connected -- usually using an ethernet cable

Rephrase your question..
<a href=\sharename\filename> Download File</a>

And they don't have to be connected.

One can be a web server and the other a file server.  No connection required.  All the web server is doing is giving you the link to the file server and the folder and file concerned.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.

Ok , so I have to mount the folder from File server (i.e Samba) into 'www' folder of the Apache server ?


The web server has the link to the file server.  And the file server won't be Samba.  Samba is not for web pages.

Let me explain again.

If your web server was an Apache server then it could have a file called 656524825.html

Inside that file would be a URL such as <a href="">656524825 file</a> which directs you to the other file server and the folder and the file concerned which could well be another Apache server.

The first server has the links.  The second server has the data or the files.

In this scenario the web pages are coded by hand according to the name of the download file on the other server.

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Questioner found a solution to the problem.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck