Discussion:
iis and file download
(too old to reply)
Auddog
2006-03-08 22:02:31 UTC
Permalink
I have a W2k box that is running IIS with the latest downloads. I would
like to allow for file download via a link. I have setup a directory and
set the execute permissions to scripts. When I try and open the link
(either from outside or inside) I get a 404 error. I'm not sure what I'm
doing wrong and would great appreciate any help. Thanks in advance.

A
Joerg Maschtaler
2006-03-08 22:23:06 UTC
Permalink
Post by Auddog
I have a W2k box that is running IIS with the latest downloads. I would
like to allow for file download via a link. I have setup a directory and
set the execute permissions to scripts. When I try and open the link
(either from outside or inside) I get a 404 error. I'm not sure what I'm
doing wrong and would great appreciate any help. Thanks in advance.
This may help you:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
Chris Crowe [ IIS MVP 1997 -> 2006 ]
2006-03-08 22:42:22 UTC
Permalink
Sounds like your configuration is wrong.

What directories have you configured?

For example:

The Default Web Site (by default) would be c:\inetpub\wwwroot.

If you have a folder called "DOWNLOADS" at c:\inetpub\wwwroot\downloads then
your user would be able to download "filex.txt" by entering
http://SERVERNAME/DOwnloads/Filex.txt

Execute refers to how the server processes certain file extensions - so this
can be set to NONE if there are no scripts (such as ASP, ASPX)

What folders have you configured?
--
Cheers

Chris Crowe [IIS MVP 1997 -> 2006]
http://blog.crowe.co.nz
------------------------------------------------
Post by Auddog
I have a W2k box that is running IIS with the latest downloads. I would
like to allow for file download via a link. I have setup a directory and
set the execute permissions to scripts. When I try and open the link
(either from outside or inside) I get a 404 error. I'm not sure what I'm
doing wrong and would great appreciate any help. Thanks in advance.
A
Auddog
2006-03-09 02:54:40 UTC
Permalink
I did create a folder in the wwwroot folder and named it download. I didn't
change any of the settings or privileges on that folder. I then created a
sub folder an named it version_1. I have one file fix.zip in that folder.
Therefore my url should be http://servername/download/version_1/fix.zip -
when I do try that url gets a 404. Thanks for any additional information
you can give.

A
Post by Chris Crowe [ IIS MVP 1997 -> 2006 ]
Sounds like your configuration is wrong.
What directories have you configured?
The Default Web Site (by default) would be c:\inetpub\wwwroot.
If you have a folder called "DOWNLOADS" at c:\inetpub\wwwroot\downloads
then your user would be able to download "filex.txt" by entering
http://SERVERNAME/DOwnloads/Filex.txt
Execute refers to how the server processes certain file extensions - so
this can be set to NONE if there are no scripts (such as ASP, ASPX)
What folders have you configured?
--
Cheers
Chris Crowe [IIS MVP 1997 -> 2006]
http://blog.crowe.co.nz
------------------------------------------------
Post by Auddog
I have a W2k box that is running IIS with the latest downloads. I would
like to allow for file download via a link. I have setup a directory and
set the execute permissions to scripts. When I try and open the link
(either from outside or inside) I get a 404 error. I'm not sure what I'm
doing wrong and would great appreciate any help. Thanks in advance.
A
t***@gmail.com
2006-03-09 05:37:56 UTC
Permalink
Auddog,

Check your permissions on the "version 1" folder. Make sure you give
anonymous account list folder/read data access. Be sure not to deny
this permission to that folder.
David Wang [Msft]
2006-03-10 06:08:46 UTC
Permalink
Does http://servername actually go to your IIS server.

If you have URLScan or IIS Lockdown configured, make sure .zip is either
allowed or not denied (depends on your URLScan configuration).

Since it is a download directory, make sure it has "Execute Permissions:
None".

Make sure you did not incorrectly configure .zip as an Application mapping
because people seem love setting that wrong configuration for some reason.
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
Post by Auddog
I did create a folder in the wwwroot folder and named it download. I
didn't change any of the settings or privileges on that folder. I then
created a sub folder an named it version_1. I have one file fix.zip in that
folder. Therefore my url should be
http://servername/download/version_1/fix.zip - when I do try that url gets
a 404. Thanks for any additional information you can give.
A
Post by Chris Crowe [ IIS MVP 1997 -> 2006 ]
Sounds like your configuration is wrong.
What directories have you configured?
The Default Web Site (by default) would be c:\inetpub\wwwroot.
If you have a folder called "DOWNLOADS" at c:\inetpub\wwwroot\downloads
then your user would be able to download "filex.txt" by entering
http://SERVERNAME/DOwnloads/Filex.txt
Execute refers to how the server processes certain file extensions - so
this can be set to NONE if there are no scripts (such as ASP, ASPX)
What folders have you configured?
--
Cheers
Chris Crowe [IIS MVP 1997 -> 2006]
http://blog.crowe.co.nz
------------------------------------------------
Post by Auddog
I have a W2k box that is running IIS with the latest downloads. I would
like to allow for file download via a link. I have setup a directory and
set the execute permissions to scripts. When I try and open the link
(either from outside or inside) I get a 404 error. I'm not sure what I'm
doing wrong and would great appreciate any help. Thanks in advance.
A
Continue reading on narkive:
Loading...