Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Virtual Directory problem

Status
Not open for further replies.
May 29, 2003
51
GB
I'm setting up a web server which our clients will log into.

I would like each client to see a seperate web site as each one will have private reports etc.

I thought a vitual directory would do this. When I tried it in FTP it was straight forward an aslong as the alias/user name and fodler had the same name it worked however the web virtual folder doesn't seem to work.

Can someone help please?

Thanks in advance
Ian Taylor
 
Maybe this thread may be what you need thread333-514503


It will list the folders under the website and create a link to the index.htm in each folder.

BTW the demo link is still up.


Chris.



Indifference will be the downfall of mankind, but who cares?
 
Hi Chris,

Thanks for your message.

However I think this isn't exactly what I want.

When I did this for FTP, I create a folder then made the virtual directory alias point to the folder.
The physical folder, virtual folder and username are all the same.
When the user logs in to ftp://domain.com they are sent to their own folder and cannot see anyone elses files.

I would like to do the same thing with a web page so that each client has their own mini site within the main one.

Regards
Ian
 
I realise it's not exactly want you want.

The only way to do this for is for the users to put in into the browser address bar

The method in the earlier thread allowed this, but also gave a way to put in then click on their username to open their site. Each virtual site can then have a logon to open that site.


Chris.





Indifference will be the downfall of mankind, but who cares?
 
The script was done for a Intranet site holding course work for students and needed a logon to reach each level.

There are two ways of making this work.

Make a virtual folder under the website with the same name as the username pointing to the folder and remove anonymous access from the virtual directory. The client uses and is prompted for their logon name.

Give each client their own sub-domain using host headers. This way you create a new website and set the host header to be sitename.domain.com The clients then put into the browser to get to their site
Using this method you can also give access to the IIS logs by moving the logs inside their virtual ftp folder.
I use this method and create a logs folder and a inside the users ftp folder then the website uses the as the web root

Like this;
Websites
|
|--user1 FTP for user1 points here
| |
| |--logs
| |
| |--www website for user1 folders
|
|--user2
| |
| |--logs
| |
| |--www

something I would avoid would be making the sitename the same as the ftp username this would limit the chances of some script-kiddie or ftp hijacker guessing the usernames.

In both cases setup a new default website (no host header)[NOT THE AUTO-CREATED DEFAULT too many scripts, stop this one running or give it a hostheader and secure password] to allow the IP scripting attacks and Virus infiltration attempts to go nowhere, set these folders as secure as possible using NTFS permissions and set up one site with a host header of maybe as an advert for your services or something.

Chris.


Indifference will be the downfall of mankind, but who cares?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top