Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Web.config répertoire virtuel

1 réponse
Avatar
LuckyMan
Bonjour,

Je dispose d'un seul domaine xxxx.xx et j'ai deux sites à mettre . Donc avec
2 URL ex xxxx.xx /aide & xxxx.xx/exploit.

Est-ce que je peut mettre un web config (car en fait il y en a deux -un par
site-) sur chacun des répertoires virtuels ?

Ou alors je suis obligé de faire deux sites indépendants et mettre l'url en
valeur de l'entete de l'hote pour les distinguer ??? (les valeurs d'entete
sont des domaines pas des url donc je doute fort que ça marche) ??

Bref merci car je patauge.

Lucky Man

Click here to answer / cliquez ci dessous pour me répondre directement
http://cerbermail.com/?LBYq8YUwyz

1 réponse

Avatar
LuckyMan
LuckyMan wrote:
Bonjour,

Je dispose d'un seul domaine xxxx.xx et j'ai deux sites à mettre .
Donc avec 2 URL ex xxxx.xx /aide & xxxx.xx/exploit.

Est-ce que je peut mettre un web config (car en fait il y en a deux
-un par site-) sur chacun des répertoires virtuels ?

Ou alors je suis obligé de faire deux sites indépendants et mettre
l'url en valeur de l'entete de l'hote pour les distinguer ??? (les
valeurs d'entete sont des domaines pas des url donc je doute fort que
ça marche) ??

Bref merci car je patauge.

Lucky Man




A priori c'est bon on peut mettre le web config sur chaque appli :
For example, the configuration settings for the URL
http://myserver/myapplication/mydir/page.aspx would be computed by applying
web.config file settings in the following order:


Base configuration settings for machine.
C:WinNTMicrosoft.NETFrameworkv.1.00configmachine.config

Overridden by the configuration settings for the site (or the root
application).
C:inetpubwwwrootweb.config

Overridden by application configuration settings.
D:MyApplicationweb.config

Overridden by subdirectory configuration settings.
D:MyApplicationMyDirweb.config
If a web.config file is present at the root directory for a site, for
example "Inetpubwwwroot", its configuration settings will apply to every
application in that site. Note that the presence of a web.config file within
a given directory or application root is completely optional. If a
web.config file is not present, all configuration settings for the directory
are automatically inherited from the parent directory

extrait de
http://dotnetjunkies.com/quickstart/aspplus/doc/configformat.aspx