We help IT Professionals succeed at work.

Connecting web server to file server

105 Views
Last Modified: 2016-10-18
Hello ,
I knew some file-sharing company have this solution but I don't know the design and topology for this scenario :

Web server (10.10.10.10) <----> File server (10.10.10.12) <-----> SAN server

So , the scenario as following : I have a file that I want to download (10.10.10.10/download.aspx?file=656524825) which obviously located on the web server, but when I press the download button the download manger reads the URL (10.10.10.12/store1/puplic/656524825) .

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

Thanks in advance for your time
Comment
Watch Question

dbruntonQuid, Me Anxius Sum?  Illegitimi non carborundum.
CERTIFIED EXPERT

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

I suspect it works like this.  Your first link 10.10.10.10/download.aspx?file=656524825 passes you the second link 10.10.10.12/store1/public/656524825 which is the actual location to the file.

It probably generates the second link by attaching 656524825 to the back of 10.10.10.12/store1/public/

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, CDSimple Geek from the '70s
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
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

Author

Commented:
yes , that's exactly what happening , 2 IP address means 2 machines  , but how they are connected  ?

Author

Commented:
Ok then , If i'm using Apache web server with some file sharing script on the first machine (10.10.10.10) , then what possibly can I use on the second machine (10.10.10.12) which operate as file server and attached to a SAN ?
David Johnson, CDSimple Geek from the '70s
CERTIFIED EXPERT
Distinguished Expert 2019

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

Rephrase your question..
<a href=10.10.10.11\sharename\filename> Download File</a>
dbruntonQuid, Me Anxius Sum?  Illegitimi non carborundum.
CERTIFIED EXPERT

Commented:
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.

Author

Commented:
Ok , so I have to mount the folder from File server (i.e Samba) into 'www' folder of the Apache server ?
dbruntonQuid, Me Anxius Sum?  Illegitimi non carborundum.
CERTIFIED EXPERT

Commented:
No.

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="0.10.10.12/store1/public/656524825.zip">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.
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
dbruntonQuid, Me Anxius Sum?  Illegitimi non carborundum.
CERTIFIED EXPERT

Commented:
Questioner found a solution to the problem.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.