473,748 Members | 4,065 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

accessing folder outside of web root

Hi,

I have a web application which uses SSL on one the folders. When I
developed application the set up was webroot and under that folder
called 'secure'.
My ISP has provided a folder called 'secure' on the server which has
shared SSL and is sitting outside of the web root, hence the set up
called 'secure' and then at the same level a folder called web root.
Now, I have two issues:

1. How can I simulate the same set up in VS.NET application and be able
to deploy application?
2. The folder called secure needs to use forms authentication and SSL.
At the moment, I have specified the following in web.config.

Expand|Select|Wrap|Line Numbers
  1. <authentication mode="Forms">
  2. <forms name="x" loginUrl="~/secure/login.aspx" path="/" />
  3. </authentication>
What modifications would I have to do to be able to use form
authentication outside the web root.

Thanks in advance.

Nov 19 '05 #1
2 2523
The most straightforward method is to use <location> tags for the type
(secure/insecure) that has the least amount of pages. The help file is
fairly good on this.

If your ISP allows subwebs, you can make another application underneath the
current application. This is even simpler (less typing). In this model, you
have a different web.config in the subweb, as it is a separate app.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** **
Think Outside the Box!
*************** *************** *************** **
<gu********@gma il.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
Hi,

I have a web application which uses SSL on one the folders. When I
developed application the set up was webroot and under that folder
called 'secure'.
My ISP has provided a folder called 'secure' on the server which has
shared SSL and is sitting outside of the web root, hence the set up
called 'secure' and then at the same level a folder called web root.
Now, I have two issues:

1. How can I simulate the same set up in VS.NET application and be able
to deploy application?
2. The folder called secure needs to use forms authentication and SSL.
At the moment, I have specified the following in web.config.

Expand|Select|Wrap|Line Numbers
  1. <authentication mode="Forms">
  2.  <forms name="x" loginUrl="~/secure/login.aspx" path="/" />
  3.  </authentication>

What modifications would I have to do to be able to use form
authentication outside the web root.

Thanks in advance.

Nov 19 '05 #2
Hi,

Thanks for your prompt reply, but this is a totally new scenario for
me. As I mentioned, The structure as I see on my ISP server is:
- secure
- webroot

And in my visual studio.net app, the structure is :
-webroot
- secure
Can I still maintain the same structure, compile my application and
deploy or as you suggested in your second option "make another
application underneath the current application".

Moreover, I need to maintain my session variable across these two
folders.

Please advise, how this can be achieved.

Thanks

Nov 19 '05 #3

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

Similar topics

4
13093
by: OllimaX | last post by:
Hi! My trouble might be simple, but I'm quite new to php, and, perhaps I'm even more simple. It's that I had to chmod 777 two folders to get my scripts do what I wanted them to do, and I don't like it. I have a script running on my ISP's unix-apache -server. It is to read string from a form, and create a text-file in a subfolder 'txt' from it. The essential parts of the script is here:
12
828
by: Jon Maz | last post by:
Hi All, I would like to have the following folder structure for an asp.net website: MasterFolder |---\AppRoot | --- webform.aspx | --- web.config | --- global.asax
4
1601
by: JP SIngh | last post by:
Hi All We have an ASP application which links to various word and excel documents stored in a folder called attachments. The documents are extermely confidential in nature and we would like restrict the access to them through the application only. How can we prevent users from guessing the name of the document and reach it by tying http://myserver/attachments/thisdocument.doc
2
1460
by: EO | last post by:
I'm using an ISP with poor tech support. I apologize if this is more of an ISP question, but it is an asp.net question as well. I have a root domain pointing to a root level folder. There are several folders in this root domain, each of which are aliased to other domain names. I used Visual Studio, through FP Extensions, logging in through the root level domain name to create a web application in a new directory, then published an...
14
1476
by: Ray5531 | last post by:
I have a console application in my local computer which I like to use remoting in it,to instanciate an object (MyClass.dll) in a web application(its bin folder) in a completely seperated box(in the same domain thought) .I have two questions: 1)Is my case covered in "Remoting objects hosted in IIS" topic?Are they same? 2) How should I authenticate to IIS from my console application? Do I really need to authenticate to IIS before...
2
1203
by: Oleg | last post by:
I need to configure my web application to see a folder outside it's root. I know I need to configure my web.config file, but don't know how. Can you help?
4
3132
by: santel_helvis | last post by:
Hi there, I wanna open the folder using asp.net. I am using anchor link to do that. But in href part how shall I give the location. Anyone plz help me out. Thanks in advance
4
24366
by: Joey | last post by:
asp.net 2/C#/VS2005 I have a web app where I use a stream writer to create a CSV (text) file. I then use my code to save the file in the site's 'App_Data' folder, in a subfolder called 'Temp'. Finally, I redirect the page to that file in order to serve it out (push the download) to the user. This all worked great in .net v1.1. Now, in my new .net v2 app, everytime the page redirect occurs, the browser displays "The webpage cannot be...
4
1412
by: Khafancoder | last post by:
Hi guys, i keep many items in cache such as onlineusers and ... recently i build a page which create tempfolders in webapplication root dir but i findout that it invalidate cache and i hadn't use of any CacheDependency at all ... what's the problem ?
0
8987
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9534
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9366
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9316
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9241
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3303
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2211
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.