Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: peterhocking on October 25, 2006, 11:45:09 AM

Title: download file from web site on SME server
Post by: peterhocking on October 25, 2006, 11:45:09 AM
Hi

I have a SME server which is acting as my network's internet gateway. I host a photo web site in the primary ibay which everyone can view OK

Yesterday I added a link to one of the pages to download a file from a folder I called data which is inside the html folder. When I tested the link while the web page was on my PC, the download worked fine. One I uploaded the file & modified web page to my server, the download link would not work, (yes the path is correct).

Any ideas?

Thanks,

Peter
Title: download file from web site on SME server
Post by: peterhocking on October 25, 2006, 11:46:47 AM
P.S> I forgot to mention, viewing the web site works fine from both the local network & the Internet.

Peter
Title: Re: download file from web site on SME server
Post by: raem on October 25, 2006, 12:24:00 PM
peterhocking

>... the download link would not work

You need to be more specific about what "would not work" means.


>..yes the path is correct

Is the link a URL ?
Title: download file from web site on SME server
Post by: peterhocking on October 25, 2006, 12:30:14 PM
Hi

I get a the page could not be found (HTTP 404 Not Found).

The file, (hocking.exe), is located inside a folder which is inside the same folder the the web pages are inside, the download link refers to http://www.mydomain.dyddns.org/data/hocking.exe

Thanks,

Peter
Title: Re: download file from web site on SME server
Post by: raem on October 25, 2006, 01:15:13 PM
peterhocking

Can you browse to
http://www.mydomain.dyddns.org/data
and see the file listed ?

If you click on it does it ask you to open or save ?

Are you trying to download the file or run the executable ?
Title: Re: download file from web site on SME server
Post by: peterhocking on October 25, 2006, 01:23:43 PM
If I browse to http://www.mydomain.dyddns.org/data, I get "Information Bay, This information bay has not been customised"

If you click on it does it ask you to open or save ?

Neither

Are you trying to download the file or run the executable ?

Download it

Thanks,

Peter[/quote]
Title: Re: download file from web site on SME server
Post by: raem on October 25, 2006, 01:48:23 PM
peterhocking

> If I browse to http://www.mydomain.dyddns.org/data,
> I get "Information Bay, This information bay has not been customised"

Can you temporarily remove or delete the index.htm file in the .../data /html folder, and then try browsing to that location again and see if you see the file listed there.

Are you sure you have the spelling case correct, linux is case sensitive.

In sme7 you may need to enable indices on that ibay.
Title: download file from web site on SME server
Post by: Terry on October 25, 2006, 05:21:07 PM
The data folder is in the html folder, in the Primary ibay, correct?  Because you got the "This ibay has not been customized" canned response index.html page I really think you have an ibay called "data" (it may be there by default and not listed in the ibay page) that is actually being called.  Can you rename your 'data' folder to something else and move the file to there and try it?  That's what I'd do to troubleshoot.
Title: download file from web site on SME server
Post by: Boris on October 25, 2006, 11:06:00 PM
you could also use "files" folder accessible from LAN via network neiborhood for file storage.
http://domain.name/ibayname/files/filename.exe would do it.