Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# MadShad 9/1/2006 4:07 AM
I have not been using IIS long (though I am extremely familiar with Apache httpd and Tomcat).
I understand how to secure directories and files in IIS from public access using the administration tool and or file system.

The question is simply, how do I secure directory and file access in the Web.config? I would like to be able to drop cuyahoga into IIS (as a virtual web) and not have to manually define security using the administration tool.

I am basically talking about preventing public access to files like:

http://this.could.be.your.cuyahoga.website/log/log.txt
http://this.could.be.your.cuyahoga.website/Modules/YourModule/Install/Database/mysql/install.sql

...without having to manually define individual configuration rules for each virtual web.

I have searched for hours for a solution in IIS to no avail (Hey I am feeling stupid ok. I can do this in about 20 secs on Apache using 'DirectoryMatch' and 'FilesMatch')
# mgaerber 9/2/2006 7:30 AM (edited 9/2/2006 7:31 AM)
I guess a good solution would be to put these folders into another directory which is not defined as a web folder.
For the install files this is more complicated because you would have to correct the source of Cuyahoga.

Otherwise the problem could be solved (I think) be defining .txt and .sql files as extension which will be interpreted by IIS, so they obey the same security settings as the other files - or am I wrong here?

Maybe the asp.net forums can help... www.asp.net