473,395 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

setting up virtual directory pointing to same web server

Hi. I have an external facing website that has both a customer login
and an admin login. I want to prevent external access to the admin
login for security reasons. On the same webserver I created a new
website running on a different port for the admin piece. So my
directory structure looks like this...

c:\inetpub\wwwroot\customer\
c:\inetpub\wwwroot\admin\

All the admin login pages are now stored under admin. However after
the initial few login pages the websites are the same. I definitely
dont want to duplicate all the non-login pages across both websites
and I can't transfer control to the other website after the admin logs
in because the session wouldn't be maintained. So what I plan on
doing is creating a virtual directory under admin like so...

c:\inetpub\wwwroot\admin\virtual\

where the virtual path points to c:\inetpub\wwwroot\customer\. This
way I can then link to all the non-login pages without having to store
them in two different places and my session will hold because I am not
transferring control to another website. I am assuming this would not
have an adverse affect on the normal customer login.

Does anyone forsee any problems with this approach?

Thanks.

Mar 13 '07 #1
1 2322
On Mar 13, 12:01 pm, mbosc...@hotmail.com wrote:
Hi. I have an external facing website that has both a customer login
and an admin login. I want to prevent external access to the admin
login for security reasons. On the same webserver I created a new
website running on a different port for the admin piece. So my
directory structure looks like this...

c:\inetpub\wwwroot\customer\
c:\inetpub\wwwroot\admin\

All the admin login pages are now stored under admin. However after
the initial few login pages the websites are the same. I definitely
dont want to duplicate all the non-login pages across both websites
and I can't transfer control to the other website after the admin logs
in because the session wouldn't be maintained. So what I plan on
doing is creating a virtual directory under admin like so...

c:\inetpub\wwwroot\admin\virtual\

where the virtual path points to c:\inetpub\wwwroot\customer\. This
way I can then link to all the non-login pages without having to store
them in two different places and my session will hold because I am not
transferring control to another website. I am assuming this would not
have an adverse affect on the normal customer login.

Does anyone forsee any problems with this approach?

Thanks.
Actually now that I try to work through this it looks like my approach
will not maintain the session. My session id is changing when I cross
into the virutal path. Any suggestions?

Thanks.

Mar 13 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mark Hoagland | last post by:
I've got a scenario with a web application where I must access the virtual directory being accessed from within the Application_OnStart event handler. Specifically, I have a series of IIS virtual...
12
by: SMAccount | last post by:
I have not used ASP before. Are there cookbook instructions for how to set up an asp directory structure. It is not clear to me how I must mark directories (virtual or physical), so they will all...
1
by: Rod | last post by:
We have a .NET application which is installed on one machine (let's call it server 2), and we point to it using IIS from another machine (our edge server, which I'll call server 1). So, server 1...
2
by: BLetts | last post by:
I have an ASP.NET app that must allow users to upload files. The files are stored in a virtual directory. I use Server.MapPath to map from the virtual directory name to a physical path, then the...
5
by: mbosco51 | last post by:
Hi. I have a virtual path setup in order to give my web server access to a file on my app server. I am using the file system object to check for the existance of the file and if it exists, it has...
10
by: Sridhar | last post by:
HI, I am having problems setting up a website so that it will be available only inside the domain. We have three servers. One is iis server and second one is internal server and the third one is...
5
by: jegec | last post by:
Hi all! Brief subject: I have to develop an ASP-based application, and build also a specific error handling ASP. After that I had set the virtual directory Custom Error 500;100 to new ASP -...
4
by: lspoulin | last post by:
Hi, We have a webpage browsing folders within the wwwroot. We need to access a remote shared directory the same way. We created a virtual directory in IIS with an alias pointing on this...
6
by: Scott M. | last post by:
I didn't get a resolution to this in my earlier post, so I'll try again: System: Windows XP Pro. (SP2) with IIS installed and running PRIOR to VS 2008 Pro. installation. VS 2008 Pro. (full...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.