I've 2 projects in same WEbRoot. Each project has is own Subdirectory.
Project #1: /Journal/ '<-- Anonymous
/Journal/Admin/ ' <-- WebForm Authentication for each web
page
Project #2: /Recettes/ '<--- Anonymous
/Recettes/Admin/ '<--- WebForm Authentication for each web
page
I've a Web.Config file that work perfectly for Form authentication. But I
really don't know how to add security for my second project. I ask this
because the hosting server only allow ONE (1) web.Config file in webroot
folder... I show you my present Web.Config file. The two project must have
distinct login page and if possible distinct custom error page... They are
completly different in subject and design.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<pages validateRequest="false" />
<compilation defaultLanguage="vb" debug="true" />
<customErrors mode="On" defaultRedirect="Journal/Err.aspx">
<error statusCode="404" redirect="Journal/Err.aspx" />
<error statusCode="403" redirect="Journal/Err.aspx" />
</customErrors>
<authentication mode="Forms">
<forms loginUrl="Journal/admin/Login.aspx" path="/">
</forms>
</authentication>
</system.web>
<location path="Journal/Admin">
<system.web>
<authorization>
<deny users ="?" />
</authorization>
</system.web>
</location>
</configuration>
The only thing I think is to add some kind of location to the main
<configuration> tag . I'm in the right direction?
Thanks
Francois 12 1194
"Francois Soucy" <Ro**@127.0.0.1> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... I've 2 projects in same WEbRoot. Each project has is own Subdirectory. Project #1: /Journal/ '<-- Anonymous /Journal/Admin/ ' <-- WebForm Authentication for each
web page
Project #2: /Recettes/ '<--- Anonymous /Recettes/Admin/ '<--- WebForm Authentication for each web page
I've a Web.Config file that work perfectly for Form authentication. But I really don't know how to add security for my second project. I ask this because the hosting server only allow ONE (1) web.Config file in webroot folder... I show you my present Web.Config file. The two project must have distinct login page and if possible distinct custom error page... They are completly different in subject and design.
<?xml version="1.0" encoding="utf-8" ?> <configuration>
<system.web> <pages validateRequest="false" /> <compilation defaultLanguage="vb" debug="true" /> <customErrors mode="On" defaultRedirect="Journal/Err.aspx"> <error statusCode="404" redirect="Journal/Err.aspx" /> <error statusCode="403" redirect="Journal/Err.aspx" /> </customErrors> <authentication mode="Forms"> <forms loginUrl="Journal/admin/Login.aspx" path="/"> </forms> </authentication> </system.web> <location path="Journal/Admin"> <system.web> <authorization> <deny users ="?" /> </authorization> </system.web> </location>
</configuration>
The only thing I think is to add some kind of location to the main <configuration> tag . I'm in the right direction?
Can't you just add
<location path="Recettes/Admin">
</location>
--
John Saunders
johnwsaundersiii at hotmail
"John Saunders" <jo**************@notcoldmail.com> wrote in message
news:Of*************@TK2MSFTNGP12.phx.gbl... "Francois Soucy" <Ro**@127.0.0.1> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl... I've 2 projects in same WEbRoot. Each project has is own Subdirectory. Project #1: /Journal/ '<-- Anonymous /Journal/Admin/ ' <-- WebForm Authentication for each web page
Project #2: /Recettes/ '<--- Anonymous /Recettes/Admin/ '<--- WebForm Authentication for each
web page
I've a Web.Config file that work perfectly for Form authentication. But
I really don't know how to add security for my second project. I ask this because the hosting server only allow ONE (1) web.Config file in webroot folder... I show you my present Web.Config file. The two project must
have distinct login page and if possible distinct custom error page... They
are completly different in subject and design.
<?xml version="1.0" encoding="utf-8" ?> <configuration>
<system.web> <pages validateRequest="false" /> <compilation defaultLanguage="vb" debug="true" /> <customErrors mode="On" defaultRedirect="Journal/Err.aspx"> <error statusCode="404" redirect="Journal/Err.aspx" /> <error statusCode="403" redirect="Journal/Err.aspx" /> </customErrors> <authentication mode="Forms"> <forms loginUrl="Journal/admin/Login.aspx" path="/"> </forms> </authentication> </system.web> <location path="Journal/Admin"> <system.web> <authorization> <deny users ="?" /> </authorization> </system.web> </location>
</configuration>
The only thing I think is to add some kind of location to the main <configuration> tag . I'm in the right direction?
Can't you just add
<location path="Recettes/Admin"> </location> -- John Saunders johnwsaundersiii at hotmail
Yes I can but user will then be redirected to /Journal/Admin/login.aspx ...
I don't want this. The two project ARE different in design and purpose.
Users that try to access a page in /Recettes/Admin/ MUST be redirected to
/Recettes/Admin/Login.aspx
Francois
"Francois Soucy" <Ro**@127.0.0.1> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... I've 2 projects in same WEbRoot. Each project has is own Subdirectory. Project #1: /Journal/ '<-- Anonymous /Journal/Admin/ ' <-- WebForm Authentication for each
web page
Project #2: /Recettes/ '<--- Anonymous /Recettes/Admin/ '<--- WebForm Authentication for each web page
I've a Web.Config file that work perfectly for Form authentication. But I really don't know how to add security for my second project. I ask this because the hosting server only allow ONE (1) web.Config file in webroot folder...
You can create two Web.Config files that are specifi to project and place
each under project#1 & #2 respectively. These specific Web.Config files will
overide the master under the webroot.
John
Hi,
As mentioned in my previous post, my webhosting only allow me ONE
web.Config file in webroot... So I can't use this solution
"WJ" <Jo*******@HotMail.Com> wrote in message
news:eu**************@tk2msftngp13.phx.gbl... "Francois Soucy" <Ro**@127.0.0.1> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl... I've 2 projects in same WEbRoot. Each project has is own Subdirectory. Project #1: /Journal/ '<-- Anonymous /Journal/Admin/ ' <-- WebForm Authentication for each web page
Project #2: /Recettes/ '<--- Anonymous /Recettes/Admin/ '<--- WebForm Authentication for each
web page
I've a Web.Config file that work perfectly for Form authentication. But
I really don't know how to add security for my second project. I ask this because the hosting server only allow ONE (1) web.Config file in webroot folder...
You can create two Web.Config files that are specifi to project and place each under project#1 & #2 respectively. These specific Web.Config files
will overide the master under the webroot.
John
"Francois Soucy" <Ro**@127.0.0.1> wrote in message
news:uW**************@TK2MSFTNGP11.phx.gbl... "John Saunders" <jo**************@notcoldmail.com> wrote in message news:Of*************@TK2MSFTNGP12.phx.gbl... "Francois Soucy" <Ro**@127.0.0.1> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl... I've 2 projects in same WEbRoot. Each project has is own Subdirectory. Project #1: /Journal/ '<-- Anonymous /Journal/Admin/ ' <-- WebForm Authentication for
each web page
Project #2: /Recettes/ '<--- Anonymous /Recettes/Admin/ '<--- WebForm Authentication for each web page
I've a Web.Config file that work perfectly for Form authentication.
But I really don't know how to add security for my second project. I ask
this because the hosting server only allow ONE (1) web.Config file in
webroot folder... I show you my present Web.Config file. The two project must have distinct login page and if possible distinct custom error page... They are completly different in subject and design.
<?xml version="1.0" encoding="utf-8" ?> <configuration>
<system.web> <pages validateRequest="false" /> <compilation defaultLanguage="vb" debug="true" /> <customErrors mode="On" defaultRedirect="Journal/Err.aspx"> <error statusCode="404" redirect="Journal/Err.aspx" /> <error statusCode="403" redirect="Journal/Err.aspx" /> </customErrors> <authentication mode="Forms"> <forms loginUrl="Journal/admin/Login.aspx" path="/"> </forms> </authentication> </system.web> <location path="Journal/Admin"> <system.web> <authorization> <deny users ="?" /> </authorization> </system.web> </location>
</configuration>
The only thing I think is to add some kind of location to the main <configuration> tag . I'm in the right direction?
Can't you just add
<location path="Recettes/Admin"> </location> -- John Saunders johnwsaundersiii at hotmail
Yes I can but user will then be redirected to /Journal/Admin/login.aspx
.... I don't want this. The two project ARE different in design and purpose. Users that try to access a page in /Recettes/Admin/ MUST be redirected to /Recettes/Admin/Login.aspx
Ok, then the other poster's suggestion about web.config files in the
Recettes and Journal directories should work for you. Each one can specify
the <forms> element appropriate to itself.
You are probably aware that web.config files are hierarchical, but I thought
I'd mention it just in case. You can have one web.config in the web root,
and the only thing you'll need to change in the Recettes and Journal
web.config files is what's different from the web root web.config.
--
John Saunders
johnwsaundersiii at hotmail
"Francois Soucy" <Ro**@127.0.0.1> wrote in message
news:uq**************@TK2MSFTNGP09.phx.gbl... As mentioned in my previous post, my webhosting only allow me ONE web.Config file in webroot... So I can't use this solution
In such case, I would give my business to a new Web Host that does.
John
I begin to think to this....
"WJ" <Jo*******@HotMail.Com> wrote in message
news:O6**************@TK2MSFTNGP10.phx.gbl... "Francois Soucy" <Ro**@127.0.0.1> wrote in message news:uq**************@TK2MSFTNGP09.phx.gbl... As mentioned in my previous post, my webhosting only allow me ONE web.Config file in webroot... So I can't use this solution
In such case, I would give my business to a new Web Host that does.
John
"Francois Soucy" <Ro**@127.0.0.1> wrote in message
news:uq**************@TK2MSFTNGP09.phx.gbl... Hi,
As mentioned in my previous post, my webhosting only allow me ONE web.Config file in webroot... So I can't use this solution
I'm sorry, that doesn't make sense. It's not _possible_ to have more than
one web.config in a single web root (directory), but I can't think of any
reason why a web hoster would prevent you from putting one in a
subdirectory. Perhaps you are misunderstanding their rule, or they are
misunderstanding web.config files?
--
John Saunders
johnwsaundersiii at hotmail
No. I don't want more than one in webroot. I can only put ONE web.config
file. This file can only be in webroot.. My web hosting only permit this
only file...
"John Saunders" <jo**************@notcoldmail.com> wrote in message
news:uE*************@TK2MSFTNGP09.phx.gbl... "Francois Soucy" <Ro**@127.0.0.1> wrote in message news:uq**************@TK2MSFTNGP09.phx.gbl... Hi,
As mentioned in my previous post, my webhosting only allow me
ONE web.Config file in webroot... So I can't use this solution
I'm sorry, that doesn't make sense. It's not _possible_ to have more than one web.config in a single web root (directory), but I can't think of any reason why a web hoster would prevent you from putting one in a subdirectory. Perhaps you are misunderstanding their rule, or they are misunderstanding web.config files? -- John Saunders johnwsaundersiii at hotmail
"Francois Soucy" <Ro**@127.0.0.1> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... No. I don't want more than one in webroot. I can only put ONE web.config file. This file can only be in webroot.. My web hosting only permit this only file...
Like I said, there's something wrong here. I don't understand why your web
hosting company would object to having a second web.config file, this one in
the /Recettes directory. Does the web hoster give a reason for this?
--
John Saunders
johnwsaundersiii at hotmail
"John Saunders" <jo**************@notcoldmail.com> wrote in message news:uE*************@TK2MSFTNGP09.phx.gbl... "Francois Soucy" <Ro**@127.0.0.1> wrote in message news:uq**************@TK2MSFTNGP09.phx.gbl... Hi,
As mentioned in my previous post, my webhosting only allow me ONE web.Config file in webroot... So I can't use this solution
I'm sorry, that doesn't make sense. It's not _possible_ to have more
than one web.config in a single web root (directory), but I can't think of
any reason why a web hoster would prevent you from putting one in a subdirectory. Perhaps you are misunderstanding their rule, or they are misunderstanding web.config files? -- John Saunders johnwsaundersiii at hotmail
No they didn't give any reason. I give you the Fact about this: http://www.brinkster.com/Kb/Kb.asp?kb=81832
As you see i'm hosted with brinkster. I've 3-4 month to wait before moving
to anotherweb hosting....
"John Saunders" <jo**************@notcoldmail.com> wrote in message
news:uD**************@TK2MSFTNGP10.phx.gbl... "Francois Soucy" <Ro**@127.0.0.1> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... No. I don't want more than one in webroot. I can only put ONE web.config file. This file can only be in webroot.. My web hosting only permit
this only file... Like I said, there's something wrong here. I don't understand why your web hosting company would object to having a second web.config file, this one
in the /Recettes directory. Does the web hoster give a reason for this? -- John Saunders johnwsaundersiii at hotmail
"John Saunders" <jo**************@notcoldmail.com> wrote in message news:uE*************@TK2MSFTNGP09.phx.gbl... "Francois Soucy" <Ro**@127.0.0.1> wrote in message news:uq**************@TK2MSFTNGP09.phx.gbl... > Hi, > > As mentioned in my previous post, my webhosting only allow
me ONE > web.Config file in webroot... So I can't use this solution
I'm sorry, that doesn't make sense. It's not _possible_ to have more than one web.config in a single web root (directory), but I can't think of any reason why a web hoster would prevent you from putting one in a subdirectory. Perhaps you are misunderstanding their rule, or they are misunderstanding web.config files? -- John Saunders johnwsaundersiii at hotmail
"Francois Soucy" <Ro**@127.0.0.1> wrote in message
news:eE**************@TK2MSFTNGP11.phx.gbl... No they didn't give any reason. I give you the Fact about this: http://www.brinkster.com/Kb/Kb.asp?kb=81832
As you see i'm hosted with brinkster. I've 3-4 month to wait before moving to anotherweb hosting....
I believe they're wrong, and I just sent them an e-mail telling them so. In
particular, I don't know what could stop web.config from working in a
subdirectory, even if one actually _wanted_ to create such a restriction.
Try it and find out.
--
John Saunders
johnwsaundersiii at hotmail
"John Saunders" <jo**************@notcoldmail.com> wrote in message news:uD**************@TK2MSFTNGP10.phx.gbl... "Francois Soucy" <Ro**@127.0.0.1> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... No. I don't want more than one in webroot. I can only put ONE
web.config file. This file can only be in webroot.. My web hosting only permit this only file... Like I said, there's something wrong here. I don't understand why your
web hosting company would object to having a second web.config file, this
one in the /Recettes directory. Does the web hoster give a reason for this? -- John Saunders johnwsaundersiii at hotmail
"John Saunders" <jo**************@notcoldmail.com> wrote in message news:uE*************@TK2MSFTNGP09.phx.gbl... > "Francois Soucy" <Ro**@127.0.0.1> wrote in message > news:uq**************@TK2MSFTNGP09.phx.gbl... > > Hi, > > > > As mentioned in my previous post, my webhosting only allow me ONE > > web.Config file in webroot... So I can't use this solution > > I'm sorry, that doesn't make sense. It's not _possible_ to have more than > one web.config in a single web root (directory), but I can't think
of any > reason why a web hoster would prevent you from putting one in a > subdirectory. Perhaps you are misunderstanding their rule, or they
are > misunderstanding web.config files? > -- > John Saunders > johnwsaundersiii at hotmail > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: AARON PECORARO |
last post by:
I need to split apart my web application into multiple projects to allow it
to be distributed in parts, but all of the projects need to work together
(ie. they need to share session information)....
|
by: JoeS |
last post by:
Is there anyway to share a single pch file between
projects in VC 7.0? I have 300+ projects each of which
creates its own pch. All projects include the exact same
header files in the precompiled...
|
by: Robert W. |
last post by:
I'm building a solution that has 1 component for the Desktop and 1 component
for the Pocket PC. (Though this isn't a mobile question).
I have a data library that will be shared on both platforms....
|
by: Gerben van Loon |
last post by:
Hi there, hope someone can help me on this:
I'm planning to deploy several ASP.NET projects to a production server.
Normally I used the "Project / Copy project" option in VS.NET, but to this...
|
by: Jimmy |
last post by:
Hi
Is it possible to define more than 1 webroot for your virtual directories on
a machine? if yes how to do that?
ch Jim
|
by: Manikandan |
last post by:
Hi,
I'm copying projects from a solution in the vss.
In my local system i created solution ,added that project(make
modification related to solution)
When i added this solution to vss, projects...
|
by: strates |
last post by:
Hello,
I have been developing an ajax/php app. In development I have kept everything in the webroot for ease, but as the project matures, I would like to move all the application code outside the...
|
by: Francesco |
last post by:
Hi there!
I'm trying to organize my sources into a webroot tree like this,
webroot
index.htm - only contains index.php into a frame
index.php - require_once('inc/layout.php')
...
|
by: firewoodtim |
last post by:
I want to display an uploaded file (e.g. a pdf file) in a "_blank"
target window. The file is stored outside of the webroot at
"/home/myhome/uploads/" and was uploaded by a trusted user with the...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
| |