Jump to content

Recommended Posts

Posted

Hi,

 

We have several thousand domain users, whose home directories are all stored on a central file share. I'd like to create webspace for them using IIS, quickly and easily, using a standard folder structure.

 

e.g. d:\users\username\ftpFiles becomes http://servername/username

 

Or something similar. Ease and quickness of implementation is better than tidyness. Any suggestions apprecaited. I haven't even *looked* at IIS since 2002, so this might be trivially easy, so excuse me not reading the manual first ;)

Posted

Open up IIS and drill down to the "Default Website" folder.

 

Right click and select properties

 

http://www.petri.co.il/images/ssl.gif

 

On the Home Directory tab enter the root location of the users home directories, for example d:\users\%USERNAME%

 

http://www.bram.us/wordpress/wp-content/uploads/2008/12/iis-home-directory.gif

 

Then if you navigate to http://fileserver1/%USERNAME% you will be presented with a directory view of your home folder.

 

D

Posted
Why wouldn't it work for multiples? Should do I'd say.

 

D

 

it would be a manual job tho wouldnt it? your cant just set it to create the webspace automatically for all users? as far as i know... if im wrong id be interested too.

Posted (edited)

Ahh I get you now!

 

Just export a user list from AD and create all the folders using mkdir it shouldn't be too difficult to write a quick batch program to do that should it!

 

1. Export your usernames

 

2. Use Excel to put 1 and 1 together

 

In column A

MKDIR D:\HTTP_ROOT\Users\

 

In column B

User1

 

In column C

=Concatenate(A1,B1)

 

Coulmn D you should get

MKDIR D:\HTTP_ROOT\Users\User1

 

Drag column D down and you should get:

 

MKDIR D:\HTTP_ROOT\Users\User1

MKDIR D:\HTTP_ROOT\Users\User2

MKDIR D:\HTTP_ROOT\Users\User3

MKDIR D:\HTTP_ROOT\Users\User4

MKDIR D:\HTTP_ROOT\Users\User5

 

Easy!

Edited by danrhodes
Posted
I've not done it yet. Your last response won't be suitable as it makes the whole directory web enabled, or creates further burden of setting appropriate permissions. I'll use Apache I think, and use the options in the link I found above.
Posted
I've not done it yet. Your last response won't be suitable as it makes the whole directory web enabled, or creates further burden of setting appropriate permissions. I'll use Apache I think, and use the options in the link I found above.

 

That's cool as long as you get the result you we're after, it doesn't matter how you get there :D

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • 12 When would you like EduGeek EDIT 2025 to be held?

    1. 1. Select a time period you can attend


      • I can make it in June\July
      • I can make it in August\Sept
      • Other time period. Please comment in the thread what works for you
      • Either time

×
×
  • Create New...