Solved

Connecting web server to file server

Posted on 2016-09-27
10
21 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
0
Comment
Question by:Mikrotiker
  • 4
  • 4
  • 2
10 Comments
 
LVL 48

Expert Comment

by:dbrunton
ID: 41818846
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.
1
 
LVL 80

Expert Comment

by:David Johnson, CD, MVP
ID: 41818877
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
0
 
LVL 1

Author Comment

by:Mikrotiker
ID: 41818878
yes , that's exactly what happening , 2 IP address means 2 machines  , but how they are connected  ?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 1

Author Comment

by:Mikrotiker
ID: 41818888
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 ?
0
 
LVL 80

Expert Comment

by:David Johnson, CD, MVP
ID: 41818890
but how they are connected -- usually using an ethernet cable

Rephrase your question..
<a href=10.10.10.11\sharename\filename> Download File</a>
0
 
LVL 48

Expert Comment

by:dbrunton
ID: 41818899
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.
0
 
LVL 1

Author Comment

by:Mikrotiker
ID: 41819465
Ok , so I have to mount the folder from File server (i.e Samba) into 'www' folder of the Apache server ?
0
 
LVL 48

Expert Comment

by:dbrunton
ID: 41819502
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.
1
 
LVL 1

Accepted Solution

by:
Mikrotiker earned 500 total points (awarded by participants)
ID: 41821224
all right I got you , I was confused because I couldn't brows the files on the other server (it's only downloadable) so I assumed it's not a web server and it could be a file server .

anyway I figured it out , when I searched for methods to force file downloading instead of browsing .

and I also found this solutions to link the servers together (using Apache) :

"Reverse Proxy"

ProxyPass "/foo/" "http://internal.example.com/bar/"
ProxyPassReverse "/foo/" "http://internal.example.com/bar/"
ProxyPassReverseCookieDomain internal.example.com public.example.com
ProxyPassReverseCookiePath "/foo/" "/bar/"

Open in new window


Source: https://httpd.apache.org/docs/2.4/urlmapping.html
0
 
LVL 48

Expert Comment

by:dbrunton
ID: 41847958
Questioner found a solution to the problem.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SSD mSata 250GB 37 73
Home lab datacenter 9 104
Dell R710 raid config 9 55
how can I get an entire game cd on the hard drive without it being required for game playback? 19 62
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question