Doc AR archives
Install docunil8
Mise en place des services ftpdoc, davdoc et webdoc de docunil
Table des matières
Install du FrameWork .Net 3.5 sp1
Installation de SQL 2005 Standard Edition
Installation de Webdav pour IIS 7
Centraliser la configuration du serveur web
IIS7: ajout des applications pool davdoc8 et webdoc8
IIS7: ajout du site webdoc8 – échec on ne le met pas en route
Dossier de l'application Fileman
IIS7: ajout du site webdoc8 avec HTTPCommander (sept 2010)
IIS7: ajout du site webdoc8 avec HTTPCommander (sept 2010)
HTTPCommander: modification des sources
Documentation IIS7: fichiers de configuration
Activer les Custom Properties (06.03.2013)
Enabling Custom Properties Using IIS Manager
Nouvel essai d’install de fileman sur win2008 (mars 2013)
Configuration de la machine
Machine
Machine virtuelle VmWare:
Nom:
docunil8.unil.ch, davdoc8.unil.ch: 130.223.27.147
webdoc8.unil.ch : 130.223.27.179
OS:
Windows Server 2008
Ajout du role de serveur web
Dans "Initial Configuration Tasks"
Cliquer sur "Add roles"
Sélectionner "Web Server (IIS)
Add Required Features
Next
Sélectionner tous les "Role Services"
Chaque fois accepter " Add Required Features "
Install du FrameWork .Net 3.5 sp1
On le télécharge depuis le site de microsoft et installe
Firewall interne
Il n'est pas actif.
Installation de SQL 2005 Standard Edition
Prendre SQL 2005 Standard Edition sur MSDNAA.
Installation:
Server components, tools, Books Online, and samples
Components to Install: tout selectionner
Sélectionner: Default instance
Service Account: User a domain user account: AD\gesu
Start Services at the end of setup: sélectionner uniquement SQL Server
Authentication Mode: Windows Authentication Mode
Collation Sttings: French, Accent-sensitive
Installer SQL 2005 SP3
Dans les Services, démarre et mettre en automatique les services suivanzs:
SQL Server Agent
SQL Analysis Services
Démarrer SQL Server Surface Area Configuration tool
Add New Administrator
SQL Server 2005 User Provisioning Tool
Donner tous les droits à Ad\gesu
Utilisateur filemanlogin
On rechange le mode d'authentification du SQL Server et on met "SQL Server and Windows Authetication mode":
To change security authentication mode
1. In SQL Server Management Studio Object Explorer, right-click the server, and then click Properties.
2. On the Security page, under Server authentication, select the new server authentication mode, and then click OK.
3. In the SQL Server Management Studio dialog box, click OK, to acknowledge the need to restart SQL Server.
On crée l'utilisateur "filemanlogin":
SQL Server Management Studio
Item Security
Bouton droit sur Logins -> New Login
SQL Server authentication
Login name: filemanlogin
Password: c……..8
De-sélectionner "Enforce password policy"
Création de la base FILEMAN
On crée la base FILEMAN:
SQL Server Management Studio
Bouton droit sur Databases -> New Database
Database Name: FILEMAN
Owner: filemanlogin
On créer les tables nécessaires pour Fileman:
SQL Server Management Studio (comme user fileman)
Avec le bouton "NewQuery", on exécute successivement les trois commande suivantes:
Use [FILEMAN]
GO
CREATE TABLE [dbo].[Login] (
[ID] [int] IDENTITY (1, 1) NOT NULL ,
[User] [nvarchar] (250) NOT NULL ,
[Pass] [nvarchar] (50) NULL ,
[GroupID] [smallint] NOT NULL DEFAULT (2),
[CrDate] [smalldatetime] NULL DEFAULT (GetDate()),
[Info] [nvarchar] (255) NULL ,
[UserRootFolder] [nvarchar] (255) NULL ,
[IsDisabled] [bit] NULL DEFAULT (0),
[LanguageFile] [nvarchar] (50) NULL DEFAULT ('French.dat'),
[ItemsPerPage] [smallint] NULL DEFAULT (26),
[SortBy] [nvarchar] (255) NULL DEFAULT ('type'),
[ShowItems] [nvarchar] (255) NULL DEFAULT ('name, type, size, moddate, ') ,
[History] [ntext] NULL ,
[NumLogins] [int] NULL DEFAULT (0) ,
[LastTime] [smalldatetime] NULL ,
[LastIP] [nvarchar] (50) NULL ,
[LastDir] [nvarchar] (255) NULL ,
[LastPassChange] [smalldatetime] NULL ,
[Email] [nvarchar] (255) NULL ,
[TotalBandwidth] [int] NULL DEFAULT (0) ,
[BandwidthThisMonth] [int] NULL DEFAULT (0) ,
[BandwidthLastReset] [smalldatetime] NULL ,
[AccountExpires] [smalldatetime] NULL ,
[UploadNotification] [bit] NULL DEFAULT (0),
[IsGroupAdmin] [bit] NULL DEFAULT (0) ,
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
Use [FILEMAN]
GO
CREATE TABLE [dbo].[Groups] (
[GroupID] [int] IDENTITY (1, 1) NOT NULL ,
[GroupName] [nvarchar] (50) NOT NULL ,
[Description] [nvarchar] (255) NULL ,
[IsAdmin] [bit] NOT NULL DEFAULT (0) ,
[IsGroupDisabled] [bit] NOT NULL DEFAULT (0) ,
[SettingsMask] [nvarchar] (100) NOT NULL DEFAULT ('11111111111111111111111111101111111001111111111111111111111111111111111111') ,
[RootFolder] [nvarchar] (255) NULL DEFAULT ('c:\temp\%user%') ,
[MaxRootFolderSize] [int] NULL DEFAULT ( 5242880) ,
[ForbiddenList] [ntext] NULL ,
[MinPassLength] [tinyint] NULL DEFAULT (6) ,
[DefaultFolderStructure] [nvarchar] (255) NULL ,
[NumUploadFields] [tinyint] NULL DEFAULT (6) ,
[MaxPassAge] [smallint] NULL DEFAULT (0) ,
[LoginMsg] [nvarchar] (255) NULL ,
[GroupCreated] [smalldatetime] NULL DEFAULT (GetDate()) ,
[CustomButtons] [ntext] NULL ,
[StartPage] [nvarchar] (255) NULL ,
[MaxBandwidth] [int] NULL DEFAULT (0) ,
[AllowMapDrives] [bit] NOT NULL DEFAULT (0)
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
Use [FILEMAN]
GO
CREATE TABLE [dbo].[FMLog] (
[Date] [smalldatetime] NULL DEFAULT (GetDate()),
[IP] [nvarchar] (50) NULL ,
[User] [nvarchar] (255) NULL ,
[Description] [ntext] NULL ,
[LastError] [nvarchar] (255) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
Attention: ci-dessus on a mis
[ItemsPerPage] [smallint] NULL DEFAULT (26),
à la place de
[ItemsPerPage] [smallint] NULL DEFAULT (25),
pour que les 26 lettres de l'alphabète soit affichée dans les listes
Attention: ci-dessus on a mis
[LanguageFile] [nvarchar] (50) NULL DEFAULT ('French.dat'),
à la place de
[LanguageFile] [nvarchar] (50) NULL DEFAULT ('English.dat'),
Attention: ci-dessus on a mis
[ShowItems] [nvarchar] (255) NULL DEFAULT ('name, type, size, moddate, ') ,
à la place de
[ShowItems] [nvarchar] (255) NULL DEFAULT ('name, type, size, attribs, moddate, ') ,
pour les colonnes affichées par défaut dans la liste des fichiers
Copie des tables existantes
Pour copier les tables de docunil2k:
Se connecter sur docunil2k
Démarrer "Enterprise Manager" de "Microsoft Sql Server
Bouton droitsur la bas FILEMAN -> All Tasks -> Export Data
Data source
Microsoft OLE Provider for SQL Server
Server: (local)
Use Windows Authentication
Database: FILEMAN
Choose a destination
Microsoft OLE Provider for SQL Server
Server: DOCUNIL8
Use SQL Server Authentication
Username: filemanlogin
Password: c……..8
Database: FILEMAN
Copy table(s) and view(s) from the source databases
Select source Tables
Sélection les 3 tables de FILEMAN
Run immediatly
Après, il faut fermer l'acceés réseau sur docunil8
Configuration IIS 7
Installation de FTP pour IIs7
Désinstaller FTP 6: dans les Roles (Server Manager), il faut "Remove Role Services" pour "FTP Publishing Service" et "IIS 6 Management Compatibility".
Prendre FTP 7.5 pour IIS7 x86 (ftp7_x86intran_75.msi) sur le site de microsoft et procéder à l'installation.
Installation de Webdav pour IIS 7
Prendre "Microsoft WebDAV 7.5 for IIS 7.0 (x86)" (webdav_x86_75.msi) sur le site de microsoft et procéder à l'installation.
Installation de "Update for WebDAV 7.5 for IIS 7.0 (KB976526) (x86)". On prend webdav_x86_kb976526.msp est on l'exécute.
User webiis7
On définit dans gestu un utilisateurs que l'on va utiliser sur le serveur IIS7.
Username: webiis7
Importation du certificat
Démarrer IIS Manager
Item DOCUNIL8
Item "Server certificates"
Import: fichier webdoc.pfx
Centraliser la configuration du serveur web
Démarrer IIS Manager
Item DOCUNIL8
Item Feature Delegation
Mettre tout à "Read Only" si possible (ou Not Delegated)
On laisse .Net Roles et .Net Users à "Configuration Read/Write".
Avec cela tous les paramètres de configuration seront dans
C:\Windows\System32\inetsrv\config\applicationHost.config
IIS7: ajout des applications pool davdoc8 et webdoc8
Démarrer IIS Manager
Item DOCUNIL8
Item Application Pools
Dans la partie centrale de la fenêtre
Bouton droit de la souris
Add Application Pool
Name: webdoc8
.Net Framework: V2.0
Managed pipeline mode: Classic
(ces deux paramètres n'ont pas d'influence
sur la performance de fileman)
Dans la partie centrale de la fenêtre sur l'application pool "webdoc8"
Bouton droit de la souris
Advanced Settings
Identity: ad\webiis7 (introduction du password)
Item DOCUNIL8
Item Application Pools
Dans la partie centrale de la fenêtre
Bouton droit de la souris
Add Application Pool
Name: davdoc8 (autre options par défaut)
Dans la partie centrale de la fenêtre sur l'application pool "davdoc8"
Bouton droit de la souris
Advanced Settings
Identity: ad\webiis7 (introduction du password)
IIS7: ajout du site davdoc8
Site davdoc8
Démarrer IIS Manager
Item Sites (bouton droit de la souris)
Add Web Site
Site Name: davdoc8
Application Pool: davdoc8
Physical path: \\docunil\docs
Connect As: Application user (pass-through authentication)
Binding: https, 130.223.27.147, 443
SSL certificate:webdoc.unil.ch
Item davdoc8
Area IIS: double-clic sur Authentication
Disable toutes les méthodes d'authentification sauf
Basic Authentication: enable
Basic Authentication: bouton droit de la souris "Edit"
Default domain: ad.unil.ch
Realm: davdoc.unil.ch
Area IIS: double-clic sur Authorization Rules
Dans la partie centrale de la fenêtre
Retirer toutes les rules existantes
Bouton droit de la souris
Add Allow Rule
Specified roles or user groups: Authenticated Users
Area IIS: double-clic sur Directory Browsing
Enable
Area IIS: double-clic sur WebDAV Authoring Rules
Enable WebDAV
Add Authoring Rule:
Allow access to: All content
Allow access to this content to: Authenticated Users
Permissions: Read, Source, Write
WebDAV settings: Changer Require SSL access: true
Area IIS: double-clic sur Output Caching
Edit Feature Settings:
Dé-activer "Enable cache" et "Enable kernel cache"
Area IIS: double-clic sur WebDAV Authoring Rules
Cliquer sur WebDAV
Allow Property Queries with infinite Depth: true
Changer le fichier inetsrv/config/applicationHost.config, ajouter maxAllowedContentLength:
<location path="davdoc8">
<system.webServer>
<security>
…
<requestFiltering>
…
<requestLimits maxAllowedContentLength="157286400"/>
</requestFiltering>
</security>
J’ai ajouté deux extensions .sav et .sps dans les mime-types (application/spss) des virtual direcvtory IIS 7.5 davdoc8 et davdoc8-http-https, comme ça les gens ne reçoivent plus l’erreur 404 on essayant de télécharger les fichiers de sauvegarde pour l’application SPSS.
Autres mime type ajoutés:
.odt application/vnd.oasis.opendocument.text
.odp application/vnd.oasis.opendocument.presentation
.odb application/vnd.oasis.opendocument.database
.r application/R
.rdata application/R
.fp7 application/filemaker
.7z application/x-7z-compressed
.m text/x-matlab
.prop application/octet-stream
. application/octet-stream
Site davdoc8 (http -> https)
Démarrer IIS Manager
Stopper le site par défaut
Item Sites (bouton droit de la souris)
Add Web Site
Site Name: davdoc8-http-https
Application Pool: davdoc8
Physical path: C:\inetpub\wwwroot
Binding: http, 130.223.27.147, 80
Item davdoc8-http-https
Area IIS: double-clic sur HTTP Rdirect
Activer Redirect to this destination: https://davdoc8.unil.ch
J’ai ajouté deux extensions .sav et .sps dans les mime-types (application/spss) des virtual direcvtory IIS 7.5 docunil8 et docunil8-http-https, comme ça les gens ne reçoivent plus l’erreur 404 on essayant de télécharger les fichiers de sauvegarde pour l’application SPSS.
Ajout de 5 extensions (.ens, .enz, .enf, .os, .cap)avec le Mime Type "application/octet-stream".
Attention: la redirection http sur https ne fonctionne pas pour le protocole WebDAV.
Après la migration on a changer la redirection vers https://davdoc.unil.ch
IIS7: ajout du site webdoc8 – échec on ne le met pas en route
Dossier de l'application Fileman
On copie C:\fm depuis docunil2k sur docunil8.
Structure application fileman:
c:\fm
On la met sur le disque
Cela nous permet de cacher ce dossier aux utilisateurs.
Permissions NTFS:
- Full control pour le groupe AdminDocUnil@ad
- Full control pour le groupe Administrators
- Read & Execute, List Folder Contents et
Read pour Domain Users
c:\fm\arbetur
Dossier où il y aura les scripts de Fileman accédés par les
users en production
Permissions NTFS:
- même permissions que ci-dessus
c:\fm\test
Dossier où il y aura les scripts de Fileman pour les tests
Permissions NTFS:
- même permissions que ci-dessus
c:\fm\log
Dossier où il y aura les log de Fileman
Permissions NTFS:
- Full control pour le groupe AdminDocUnil@ad
- Full control pour le groupe Administrators
- Read & Execute, List Folder Contents et
Read pour Domain Users
créer le fichier vide c:\fm\log\fileman.log
ajouter l'accès Write et écriture pour Domain Users
au fichier c:\fm\log\fileman.log
c:\fm\database
Dossier où il y aura la base des utilisateurs (Access)
Permissions NTFS:
- Full control pour le groupe AdminDocUnil@ad
- Full control pour le groupe Administrators
de docunil2k
- Modify, Write, Read & Execute, List Folder
Contents et Read pour Domain Users
c:\fm\admin
Dossier où il y aura les script de Fileman pour l'admin de fm
Permissions NTFS:- Full control pour le groupe AdminDocUnil@ad
- Full control pour le groupe Administrators
de docunila
- Read & Execute, List Folder Contents et
Read à aroy@ad et gesu@ad
c:\fm\src.6.3h
Dossier où il y a les source originale de la version 6.3h de Fileman
c:\fm\arbetur-original-6.3h
Dossier avec l'application Fileman originale Fileman
Permissions NTFS:
- Full control pour le groupe AdminDocUnil@ad
- Full control pour le groupe Administrators
de docunil2k
c:\fm\w32-Controls
Permissions NTFS:
- Full control pour le groupe AdminDocUnil@ad
- Full control pour le groupe Administrators
de docunila
- Read & Execute, List Folder Contents et
Read pour Domain Users
c:\fm\arbetur\global.asa
Contient la configuration de fileman
On enregister le module FathUpload.dll (comme admin):
copy c:\fm\w32-Controls\FathUpload.dll c:\Windows\system32
regsvr32 c:\Windows\System32\FathUpload.dll
Site webdoc8
Démarrer IIS Manager
Item Sites (bouton droit de la souris)
Add Web Site
Site Name: webdoc8
Application Pool: webdoc8
Physical path: C:\fm\arbetur
Connect As: Application user (pass-through authentication)
Binding: https, 130.223.27.179, 444
SSL certificate:webdoc.unil.ch
Item webdoc8
Area IIS: double-clic sur Authentication
Disable toutes les méthodes d'authentification sauf
Basic Authentication: enable
Basic Authentication: bouton droit de la souris "Edit"
Default domain: ad.unil.ch
Realm: webdoc.unil.ch
Area IIS: double-clic sur Authorization Rules
Dans la partie centrale de la fenêtre
Retirer toutes les rules existantes
Bouton droit de la souris
Add Allow Rule
Specified roles or user groups: Authenticated Users
Site webdoc8 (http -> https)
Démarrer IIS Manager
Stopper le site par défaut
Item Sites (bouton droit de la souris)
Add Web Site
Site Name: webdoc8-http-https
Application Pool: on laisse le défaut
Physical path: C:\inetpub\wwwroot
Binding: http, 130.223.27.179, 80
Item webdoc8-http-https
Area IIS: double-clic sur HTTP Redirect
Activer Redirect to this destination: https://webdoc8.unil.ch
IIS7: ajout du site ftpdoc8
Site ftpdoc8
Démarrer IIS Manager
Item Sites (bouton droit de la souris)
Add FTP Site
FTP site name: ftpdoc8
Physical path: \\docunil\docs
IP addtress: 130.223.27.147
Port: 21
Allow SSL
Sélectionner le certificat Quovadis
Authentication: Basic (seulement)
Default domain:ad.unil.ch
Allow Access: Specified roles or user groups
Authenticated Users
Permissions: Read, Write
La propriété "Pass-through authentication" est définie automatiquement.
Item ftpdoc8
FTP Directory Browsing
Directory Listing Style: UNIX
Display the following information in directory listings : Activer « Virtual directories ».
IIS7: ajout du site webdoc8 avec HTTPCommander (sept 2010)
On commence par supprimer l'ancien site webdoc8.
On crée le dossier C:\InetPub\webdoc et on lui met les mêmes droits que C:\InetPub\wwwroot .
On crée le site webdoc8
Démarrer IIS Manager
Bouton droit su Sites: Add Web Site
Site name: webdoc8
Physical path: C:\InetPub\webdoc
Type: https
Ip address: 130.223.27.179
SSL certificate: webdoc.unil.ch
Le 30.08.2010, téléchargement depuis le site http://www.element-it.com de HTTPCommanderAJS1.0Windows.zip, je renomme ce zip en HTTPCommanderAJS1.0Windows-20100830.zip
Le 15.09.2010, téléchargement depuis le site http://www.element-it.com de HTTPCommanderAJS1.0Windows.zip, je renomme ce zip en HTTPCommanderAJS1.0Windows-20100915.zip
Dans un premier temps, on utilise la version du 30.08.2010 appelée par moi version 1.
C'est à cette version que correspond les sources reçues.
La version du 15.09.2010 appelée par moi version 2.
Les sources reçues ne semble pas correspondre à cette version.
Dans le dossier C:\InetPub\webdoc, on déballe le .zip. Obtient le dossier HTCOMNET
On copie le contenu de HTCOMNET dans C:\InetPub\webdoc
Dans IIS Manager:
Clic gauche sur webdoc8
Double clic sur Authentication
Disable Anonymous Authentication
Enable Basic Authentication
Edit Basic Authentication:
Default domain: ad.unil.ch
Realm: WebDoc
Toutes les autres "Authetication" sont disable
Edition du fichier C:\InetPub\webdoc\Web.config
On ajoute aroy comme administrateurs:
<add key="administrators" value="aroy,Administrator"/>
On ajoute la clé de licence:
<add key="licenseKey" value="B01DF72D1EEED3C38B90F6D8277DFD59A2EB2E4800273903F117070164338E9C"/>
Item DOCUNIL8
Item Feature Delegation
Custom Delegation
Mettre tout à "Read/write" si possible pour le serveur webdoc8
(pour que le fichier Web.config de HT soit pris en compte)
Donner tous les droits à ad\aroy sur le dossier C:\InetPub\webdoc\Data
Se connecter comme aroy sur https://webdoc8.unil.ch
Clic Administration
ON enlève toutes les définitions de dossier
On ajoute
Folder name: home
Phyical path: \\docunil.unil.ch\docs\users\%USERNAMEUNIL%
Add user: regex:.*
On laisse les permissions par défaut
Folder name: users
Phyical path: \\docunil.unil.ch\docs\users
Add user: regex:.*
On laisse les permissions par défaut
Folder name: groups
Phyical path: \\docunil.unil.ch\docs1\groups
Add user: regex:.*
On laisse les permissions par défaut
IIS7: ajout du site webdoc8 avec HTTPCommander (sept 2010)
Dans C:\InetPub\webdocdev\HT, je crée
· C:\InetPub\webdoc\HT\HT1orig
o Qui est la version 1 originale
· C:\InetPub\webdocdev\HT\HT1mod
o Qui est la version 1 modifiée
· C:\InetPub\webdocdev\HT\HTF2orig
o Qui est la version 2 originale, authentification par formulaire
HTTPCommander: modification des sources
Je charge les sources reçues et je fais les modifications suivantes:
Modification pour avoir le dossier home de chaque utilisateur:
· Classe Utils du projet HttpCommander, méthode GetResultantPath, ajouter
if (resultantPath.Contains("%USERNAME1%"))
{
resultantPath = resultantPath.Replace("%USERNAME1%", Utils.CurrentUserName.Substring(0, 1));
}
if (resultantPath.Contains("%USERNAME12%"))
{
resultantPath = resultantPath.Replace("%USERNAME12%", Utils.CurrentUserName.Substring(0, 2));
}
Modification pour avoir le tri alphabétique croissant OK dans la partie droite
· Dans le fichier Comparer.cs , ajouter la classe
public class NameComparerAsc : IComparer<FileSystemInfo>
{
#region IComparer<FileInfo> Members
public int Compare(FileSystemInfo x, FileSystemInfo y)
{
return x.Name.CompareTo(y.Name);
}
#endregion
}
· Dans le fichier GridHandler.ashx.cs remplacer
JArray data = new JArray();
IComparer<FileSystemInfo> comparer = null;
Par
JArray data = new JArray();
IComparer<FileSystemInfo> comparer = new NameComparerAsc();
Modification pour avoir le tri alphabétique croissant OK dans la partie gauche (Folders)
· Dans le fichier TreeHandler.ashx.cs remplacer
if (p.ListFolders)
{
foreach (DirectoryInfo di in diRoot.GetDirectories())
{
data.Add(new JObject(
Par
if (p.ListFolders)
{
IComparer<FileSystemInfo> comparer = new NameComparerAsc();
DirectoryInfo[] dirs = diRoot.GetDirectories();
Array.Sort<FileSystemInfo>(dirs, comparer);
foreach (DirectoryInfo di in dirs)
{
data.Add(new JObject(
· On regénère la solution et on remplace HttpCommander.dl dans C:\InetPub\webdoc\bin. On fait déjà le test dans HT1mod du serveur webdocdev
Documentation IIS7: fichiers de configuration
Répertoire principal de configuration (en particulier le fichier applicationHost.config):
C:\Windows\System32\inetsrv\config
Répertoire de configuration de .Net (en particulier le fichier machine.config):
C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG
Dans chaque "web content directories", il peut y avoir aussi un fichier web.config pouvant contenir des structures de configuration IIS ou .Net applicable au niveau où il se trouve et en dessous.
In terms of inheritance hierarchy, the root file is machine.config, then web.config at the same directory (referred to as root web.config), then applicationHost.config, then the optional web.config files along the namespace.
In some cases it is useful to have the web.config file include some other .config file. This can be done by using the configSource attribute. Currently it is limited to point to relative physical paths in sub-directories, for security reasons (i.e. file A can only include file B if B is in physical subdirectory of A). Here's a basic example that shows how to use configSource:
<!-- in inetsrv\applicationHost.config -->
<configuration>
<system.webServer>
<!-- mimemaps moved by the customer to a different file -->
<!-- so that this file is shorter and more readable -->
<staticContent configSource="staticContent.config"/>
…
Activer les Custom Properties (06.03.2013)
Enabling Custom Properties Using IIS Manager
Voir http://www.iis.net/learn/publish/using-webdav/how-to-use-custom-properties-with-webdav
- In IIS Manager, in the Connections pane, expand the Sites node in the tree, then click the Default Web Site.
- As shown in the image below, double-click the WebDAV Authoring Rules feature.
- When the WebDAV Authoring Rules page is displayed, click the WebDAV Settings task in the Actions pane.
- When the WebDAV Settings page is displayed, specify the following options:
- Once you have completed the above steps, click the Apply task in the Actions pane.
Nouvel essai d’install de fileman sur win2008 (mars 2013)
Voir : http://www.alexthissen.nl/blogs/main/archive/2008/02/18/running-classic-asp-on-iis-7.aspx
Running classic ASP on IIS 7
It's not really difficult to run classic ASP on Internet Information Server 7, but there are some bumps down the road. Here's a little help to get you started:
First of all, check whether you have the Windows feature for ASP installed. Go to Programs and Features in Control Panel and click Turn Windows features on and off. Navigate down the tree of features and make sure ASP is checked.
Next, go to Internet Information Server (IIS) Manager (run inetmgr from the Start Search box to get there fast) and create a new application pool for ASP.
This should be a "No managed code" and "Classic" app pool if you do not intend to mix and match the .NET Framework and ASP.NET in the same pool. The Integrated pipeline would not make sense, because it only applies to integrating HTTP modules that are either native or managed .NET implementations.
I had some difficulties setting the identity of the application pool to the new built-in IUSR account. This account replaces the former computer account called IUSR_machinename. Same goes for the IIS_WPG group for application pools that is replaced by the builtin group IIS_IUSRS. Read more about it here. Under the Advanced Settings of the "ASP" application pool you will find the Identity property under Process Model. The default value is NetworkService. I found no way to set this to the BUILTIN\IUSR by choosing SpecificUser and setting BUILTIN\USR under Identity SpecificUser Credentials. I guess that you shouldn't be running ASP sites under IUSR anymore. It is used for anonymous users automatically.
To easy the administration effort, there is a way to turn off the IUSR account without turning off anonymous identification:
appcmd set config -section:anonymousAuthentication -userName:"" --password
And lastly, create your new web application. For example, copy the ASP site folder under C:\inetpub\wwwroot, where the default installation location of "Default Web Site" of IIS. Convert the folder (or virtual directory) to an application and choose "ASP" as the application pool. Check whether the .asp extension is mapped to the correct handler and whether it is enabled. Also make sure that the identity of your application pool has sufficient rights (and no more than that) to access the files in the web site's folder.
One final note: whenever there is a error in the ASP website, and you get this error message: "An error occurred on the server when processing the URL. Please contact the system administrator",
it's probably because by default no error messages are sent to the client in IIS7. Change the setting "Send Errors To Browser" of your web application under the ASP icon to reveal such errors.
Side note: if you get the nice Internet Explorer 500 error message and no particular details at all, remember to uncheck the "Show friendly HTTP error messages" checkbox under Internet Options, Advanced of IE.
Some more tips for classic ASP developers on IIS7 can be found on Bills' IIS blog.
Install docunil12
Mise en place des services ftpdoc, davdoc et webdoc de docunil
Table des matières
Configuration de la machine...................................................... 2
Machine............................................................................... 2
Ajout du role de serveur web................................................. 2
Install du FrameWork .Net 3.5 sp1......................................... 2
Firewall interne..................................................................... 2
Installation de SQL 2008 Standard Edition 64 bits................... 2
Utilisateur filemanlogin....................................................... 4
Création de la base FILEMAN.............................................. 4
Copie des tables existantes................................................. 7
Configuration IIS 8............................................................... 8
Installation de FTP pour IIS8.............................................. 8
Installation de Webdav pour IIS 7....................................... 8
User webiis7...................................................................... 8
Importation du certificat..................................................... 8
Centraliser la configuration du serveur web.......................... 9
IIS8: ajout des applications pool davdoc12 et webdoc12....... 9
IIS8: ajout du site davdoc12............................................. 10
Site davdoc12.............................................................. 10
Site davdoc12 (http -> https)........................................ 11
Dossier de l'application Fileman..................................... 12
Site webdoc12.............................................................. 13
Site webdoc12 (http -> https)....................................... 14
IIS7: ajout du site ftpdoc12.............................................. 14
Site ftpdoc12................................................................ 14
HTTPCommander: modification des sources....................... 16
Documentation IIS8: fichiers de configuration.................... 18
Activer les Custom Properties (06.03.2013)....................... 18
Enabling Custom Properties Using IIS Manager...................... 18
Nouvel essai d’install de fileman sur win2008 (mars 2013).. 21
Running classic ASP on IIS 7................................................... 21
Configuration de la machine
Machine
Machine virtuelle VmWare:
Nom:
· docunil12.unil.ch, davdoc12.unil.ch, ftpdoc12.unil.ch: 130.223.27.112
· webdoc12.unil.ch : 130.223.xx.xxx
OS:
· Windows Server 2012
Ajout du role de serveur web
Dans "Server Manager"
Cliquer sur "Add roles and features"
Dans « Add Roles and Features Wizard », après quelques next, sélectionner "Web Server (IIS)
Cocher « Include management tools (if applicable)
Add Features
Next
Sélectionner tous les "Role Services"
Chaque fois accepter " Add Required Features "
Restart server destination if needed
Install
Close
Install du FrameWork .Net 3.5 sp1
Via le « Add Roles and Features Wizard »
Via powershell
Télécharger une version de 2012 server et le monter. Dans le « Add Roles and Features Wizard », spécifier un nouveau chemin (« e:\sources\sxs », ou e est le disque de montage).
Firewall interne
Il n'est pas actif.
Installation de SQL 2008 Standard Edition 64 bits
Prendre SQL 2008 Standard Edition sur MSDNAA.
LOG ON AS AD\gesu
Installation:
· Mount ISO (right click -> mount)
· Launch SQL Server Installation Center
· System Configuration Checker -> Choose mounted ISO -> OK
· Go to mounted ISO and launch setup.exe (same window opens)
· Installation -> New SQL Server stand-alone installation or add...
· Setup Support Rules -> OK
· Install
· Next
· Product Key déjà rempli -> Next
· Accept -> Next -> Install
· Setup Support Rules -> Next
Feature selection :
· Database Engine Services
· Analysis Services
· Reporting Services
· Client Tools Connectivity
· Intergration Services
· SQL Server Books Online
· Management Tools Basic
◦ Management Tools Complete
-> Next
Sélectionner: Default instance
Next
Disk usage summary -> next
Server components, tools, Books Online, and samples
Components to Install: tout selectionner
Service Account: User the same account for all SQL Server services: AD\gesu
next
Start Services at the end of setup: sélectionner uniquement SQL Server
Authentication Mode: Windows Authentication Mode
Collation Sttings: French, Accent-sensitive
Account provisionning -> Add current user -> next
next
report service : default -> next
error and usage -> next
installation rules -> next
ready to install -> install
Setup process complete -> Next
Close
Installer SQL 2005 SP3
Dans les Services, démarre et mettre en automatique les services suivants:
SQL Server Agent
SQL Analysis Services
Démarrer SQL Server Surface Area Configuration tool
Add New Administrator
SQL Server 2005 User Provisioning Tool
Donner tous les droits à Ad\gesu
Utilisateur filemanlogin
On rechange le mode d'authentification du SQL Server et on met "SQL Server and Windows Authentication mode":
To change security authentication mode :
1. Database Engine / (local) / Windows Authentification / AD\gesu (greyed out) -> Connect
2. In SQL Server Management Studio Object Explorer, right-click the server, and then click Properties.
3. On the Security page, under Server authentication, select the new server authentication mode, and then click OK.
4. In the SQL Server Management Studio dialog box, click OK, to acknowledge the need to restart SQL Server.
On crée l'utilisateur "filemanlogin":
· SQL Server Management Studio
· Item Security
· Bouton droit sur Logins -> New Login
· SQL Server authentication
· Login name: filemanlogin
· Password: c……..8 (voir fichier C:\fm\arbetur\global.asa, ligne ~14)
· De-sélectionner "Enforce password policy"
Création de la base FILEMAN
On crée la base FILEMAN:
· SQL Server Management Studio
· Bouton droit sur Databases -> New Database
· Database Name: FILEMAN
· Owner: filemanlogin
· Add
On créer les tables nécessaires pour Fileman:
SQL Server Management Studio (comme user fileman)
Avec le bouton "NewQuery", on exécute successivement les trois commande suivantes:
Use [FILEMAN]
GO
CREATE TABLE [dbo].[Login] (
[ID] [int] IDENTITY (1, 1) NOT NULL ,
[User] [nvarchar] (250) NOT NULL ,
[Pass] [nvarchar] (50) NULL ,
[GroupID] [smallint] NOT NULL DEFAULT (2),
[CrDate] [smalldatetime] NULL DEFAULT (GetDate()),
[Info] [nvarchar] (255) NULL ,
[UserRootFolder] [nvarchar] (255) NULL ,
[IsDisabled] [bit] NULL DEFAULT (0),
[LanguageFile] [nvarchar] (50) NULL DEFAULT ('French.dat'),
[ItemsPerPage] [smallint] NULL DEFAULT (26),
[SortBy] [nvarchar] (255) NULL DEFAULT ('type'),
[ShowItems] [nvarchar] (255) NULL DEFAULT ('name, type, size, moddate, ') ,
[History] [ntext] NULL ,
[NumLogins] [int] NULL DEFAULT (0) ,
[LastTime] [smalldatetime] NULL ,
[LastIP] [nvarchar] (50) NULL ,
[LastDir] [nvarchar] (255) NULL ,
[LastPassChange] [smalldatetime] NULL ,
[Email] [nvarchar] (255) NULL ,
[TotalBandwidth] [int] NULL DEFAULT (0) ,
[BandwidthThisMonth] [int] NULL DEFAULT (0) ,
[BandwidthLastReset] [smalldatetime] NULL ,
[AccountExpires] [smalldatetime] NULL ,
[UploadNotification] [bit] NULL DEFAULT (0),
[IsGroupAdmin] [bit] NULL DEFAULT (0) ,
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
Use [FILEMAN]
GO
CREATE TABLE [dbo].[Groups] (
[GroupID] [int] IDENTITY (1, 1) NOT NULL ,
[GroupName] [nvarchar] (50) NOT NULL ,
[Description] [nvarchar] (255) NULL ,
[IsAdmin] [bit] NOT NULL DEFAULT (0) ,
[IsGroupDisabled] [bit] NOT NULL DEFAULT (0) ,
[SettingsMask] [nvarchar] (100) NOT NULL DEFAULT ('11111111111111111111111111101111111001111111111111111111111111111111111111') ,
[RootFolder] [nvarchar] (255) NULL DEFAULT ('c:\temp\%user%') ,
[MaxRootFolderSize] [int] NULL DEFAULT ( 5242880) ,
[ForbiddenList] [ntext] NULL ,
[MinPassLength] [tinyint] NULL DEFAULT (6) ,
[DefaultFolderStructure] [nvarchar] (255) NULL ,
[NumUploadFields] [tinyint] NULL DEFAULT (6) ,
[MaxPassAge] [smallint] NULL DEFAULT (0) ,
[LoginMsg] [nvarchar] (255) NULL ,
[GroupCreated] [smalldatetime] NULL DEFAULT (GetDate()) ,
[CustomButtons] [ntext] NULL ,
[StartPage] [nvarchar] (255) NULL ,
[MaxBandwidth] [int] NULL DEFAULT (0) ,
[AllowMapDrives] [bit] NOT NULL DEFAULT (0)
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
Use [FILEMAN]
GO
CREATE TABLE [dbo].[FMLog] (
[Date] [smalldatetime] NULL DEFAULT (GetDate()),
[IP] [nvarchar] (50) NULL ,
[User] [nvarchar] (255) NULL ,
[Description] [ntext] NULL ,
[LastError] [nvarchar] (255) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
Attention: ci-dessus on a mis
[ItemsPerPage] [smallint] NULL DEFAULT (26),
à la place de
[ItemsPerPage] [smallint] NULL DEFAULT (25),
pour que les 26 lettres de l'alphabète soit affichée dans les listes
Attention: ci-dessus on a mis
[LanguageFile] [nvarchar] (50) NULL DEFAULT ('French.dat'),
à la place de
[LanguageFile] [nvarchar] (50) NULL DEFAULT ('English.dat'),
Attention: ci-dessus on a mis
[ShowItems] [nvarchar] (255) NULL DEFAULT ('name, type, size, moddate, ') ,
à la place de
[ShowItems] [nvarchar] (255) NULL DEFAULT ('name, type, size, attribs, moddate, ') ,
pour les colonnes affichées par défaut dans la liste des fichiers
Copie des tables existantes
Pour copier les tables de docunil8:
Se connecter sur docunil8
Démarrer "Enterprise Manager" de "Microsoft Sql Server
Bouton droitsur la base FILEMAN -> All Tasks -> Export Data
Data source
Microsoft OLE DB Provider for SQL Server
Server: (local)
Use Windows Authentication
Database: FILEMAN
Choose a destination
Microsoft OLE DB Provider for SQL Server
Server: DOCUNIL12
Use SQL Server Authentication
Username: filemanlogin
Password: c……..8 (Même sur docunil12)
Database: FILEMAN
Copy table(s) and view(s) from the source databases
Select source Tables
Sélection les 3 tables de FILEMAN
Edit Mappings
Check Enable identity insert is enabled for tables Groups and Login
Run immediatly
Après, il faut fermer l’accès réseau sur docunil12
Configuration IIS 8
Installation de FTP pour IIS8
Désinstaller FTP 6: dans les Roles (Server Manager), il faut "Remove Role Services" pour "FTP Publishing Service" et "IIS 6 Management Compatibility".
Prendre FTP 7.5 pour IIS7 x86 (ftp7_x86intran_75.msi) sur le site de microsoft et procéder à l'installation.
FTP server installé de base dans IIS8
Installation de Webdav pour IIS 7
Prendre "Microsoft WebDAV 7.5 for IIS 7.0 (x86)" (webdav_x86_75.msi) sur le site de microsoft et procéder à l'installation.
Installation de "Update for WebDAV 7.5 for IIS 7.0 (KB976526) (x86)". On prend webdav_x86_kb976526.msp est on l'exécute.
C'est installé de base dans IIS8
User webiis7
On définit dans gestu un utilisateurs que l'on va utiliser sur le serveur IIS8.
Username: webiis7
Ce user existe déjà.
Importation du certificat
[nous avons du créé un certificate request et envoyé le fichier généré à AR qui nous génère le certificat et nous le retourne sous forme de fichier .crt.
Sous IIS Manager, cliquer sur DOCUNIL12 (DOCUNIL12\Administrator).
Dans la colonne de droite, Create Certificate Request
Common name : docunil12.unil.ch
Organization : Universite de Lausanne (pas d'accents!)
Organizational unit:ci
City/Locality : Lausanne
State/province : vd
Country/region : CH
Sur l'écran suivante, choisir Microsoft RSA[...] et une clef de 2048 bits. Sauvez le fichier en .txt et l'envoyer à AR.
Ensuite, dans IIS Manager, aller sur Complete Certificate Request et sélectionner le fichier renvoyé par AR (docunil12.unil.ch-20140310.crt dans ce cas)
Friendly name :docunil12.unil.ch
Select a certificate store:Web Hosting Personal
]
Démarrer IIS Manager
Item DOCUNIL12
Item "Server certificates"
Import: fichier webdoc.pfx
Centraliser la configuration du serveur web
Démarrer IIS Manager
Item DOCUNIL12
Item Feature Delegation
Mettre tout à "Read Only" si possible (ou Not Delegated)
On laisse .Net Roles et .Net Users à "Configuration Read/Write". CES OPTIONS NE SONT PAS VISIBLES DANS IIS8 (probablement car elles ne sont pas installées) /!\
Avec cela, tous les paramètres de configuration seront dans
C:\Windows\System32\inetsrv\config\applicationHost.config
IIS8: ajout des applications pool davdoc12 et webdoc12
Démarrer IIS Manager
Item DOCUNIL12
Item Application Pools
Dans la partie centrale de la fenêtre
Bouton droit de la souris
Add Application Pool
Name: webdoc12
.Net Framework: V2.0
Managed pipeline mode: Classic
(ces deux paramètres n'ont pas d'influence
sur la performance de fileman)
Dans la partie centrale de la fenêtre sur l'application pool "webdoc12"
Bouton droit de la souris
Advanced Settings
Identity: ad\webiis7 (introduction du password)
Item DOCUNIL12
Item Application Pools
Dans la partie centrale de la fenêtre
Bouton droit de la souris
Add Application Pool
.Net Framework: V2.0
Name: davdoc12 (autre options par défaut)
Dans la partie centrale de la fenêtre sur l'application pool "davdoc12"
Bouton droit de la souris
Advanced Settings
Identity: ad\webiis7 (introduction du password)
IIS8: ajout du site davdoc12
Site davdoc12
Démarrer IIS Manager
Item Sites (bouton droit de la souris)
Add Web Site
Site Name: davdoc12
Application Pool: davdoc12
Physical path: \\docunil\docs
Connect As: Application user (pass-through authentication)
Binding: https, 130.223.27.112, 443
SSL certificate:webdoc.unil.ch
Item davdoc12
Area IIS: double-clic sur Authentication /!\ se loguer avec AD\gesu
Disable toutes les méthodes d'authentification sauf
Basic Authentication: enable
Basic Authentication: bouton droit de la souris "Edit"
Default domain: ad.unil.ch
Realm: davdoc.unil.ch
Area IIS: double-clic sur Authorization Rules
Dans la partie centrale de la fenêtre
Retirer toutes les rules existantes
Bouton droit de la souris
Add Allow Rule
Specified roles or user groups: Authenticated Users
Area IIS: double-clic sur Directory Browsing
Enable
Area IIS: double-clic sur WebDAV Authoring Rules
Enable WebDAV
Add Authoring Rule:
Allow access to: All content
Allow access to this content to: Authenticated Users
Permissions: Read, Source, Write
WebDAV settings (colonne de droite):
Changer Require SSL access: true
Allow Property Queries with infinite Depth: true
Area IIS: double-clic sur Output Caching
Edit Feature Settings:
Dé-activer "Enable cache" et "Enable kernel cache"
Area Actions (colonne de droite): double-clic View Virtual Directories
Add Virtual Directory...
Alias: groups
Physical path :\\docunil\docs1\groups
/!\ suite à cela, un fichier (web.config?) s'est créé à la racine de \\docunil.unil.ch\docs et a planté docunil ! Il a fallu se loguer (user : gesu) pour effacer ce fichier et redémarrer le service sur docunil8. C'est parce que dans Feature Delegation certaines options n'étaient pas à Read Only probablement (voir Centraliser la configuration du serveur web plus haut)
Changer le fichier inetsrv/config/applicationHost.config, ajouter maxAllowedContentLength:
<location path="davdoc12">
<system.webServer>
<security>
…
<requestFiltering>
…
<requestLimits maxAllowedContentLength="157286400"/>
</requestFiltering>
</security>
J’ai ajouté deux extensions .sav et .sps dans les mime-types (application/spss) des virtual directory IIS 7.5 davdoc12 et davdoc12-http-https, sur DOCUNIL12 comme ça les gens ne reçoivent plus l’erreur 404 en essayant de télécharger les fichiers de sauvegarde pour l’application SPSS.
Autres mime type ajoutés:
.odt application/vnd.oasis.opendocument.text
.odp application/vnd.oasis.opendocument.presentation
.odb application/vnd.oasis.opendocument.database
.r application/R
.rdata application/R
.fp7 application/filemaker
.fmp12 application/filemaker
.7z application/x-7z-compressed
.m text/x-matlab
.prop application/octet-stream
. application/octet-stream
Site davdoc12 (http -> https)
Démarrer IIS Manager
Stopper le site par défaut
Item Sites (bouton droit de la souris)
Add Web Site
Site Name: davdoc12-http-https
Application Pool: davdoc12
Physical path: C:\inetpub\wwwroot
Binding: http, 130.223.27.112, 80
Item davdoc12-http-https
Area IIS: double-clic sur HTTP Redirect
Activer Redirect to this destination: https://davdoc12.unil.ch
/!\ J'ai dû renommer le fichier web.config présent dans le dossier c:\inetpub\wwwroot en web.config.bak
J’ai ajouté deux extensions .sav et .sps dans les mime-types (application/spss) des virtual directory IIS 7.5 docunil12 et docunil12-http-https, comme ça les gens ne reçoivent plus l’erreur 404 en essayant de télécharger les fichiers de sauvegarde pour l’application SPSS.
Ajout de 5 extensions (.ens, .enz, .enf, .os, .cap) avec le Mime Type "application/octet-stream". Rajouté au niveau DOCUNIL12
Attention: la redirection http sur https ne fonctionne pas pour le protocole WebDAV.
Après la migration on a changé la redirection vers https://davdoc.unil.ch
IIS8: ajout du site webdoc12 – échec on ne le met pas en route
Dossier de l'application Fileman
On copie C:\fm depuis docunil2k sur docunil12.
Structure application fileman:
c:\fm
On la met sur le disque
Cela nous permet de cacher ce dossier aux utilisateurs.
Permissions NTFS (Onglet Security):
- Full control pour le groupe AdminDocUnil
- Full control pour le groupe Administrators
- Read & Execute, List Folder Contents et Read pour Domain Users
- (other accounts to be left as before)
c:\fm\arbetur
Dossier où il y aura les scripts de Fileman accédés par les users en production
Permissions NTFS:
- même permissions que ci-dessus
c:\fm\test
Dossier où il y aura les scripts de Fileman pour les tests
Permissions NTFS:
- même permissions que ci-dessus PAS PRESENT ICI
c:\fm\log
Dossier où il y aura les log de Fileman
Permissions NTFS:
- Full control pour le groupe AdminDocUnil@ad
- Full control pour le groupe Administrators
- Read & Execute, List Folder Contents et
Read pour Domain Users
créer le fichier vide c:\fm\log\fileman.log
ajouter l'accès Write et écriture pour Domain Users
au fichier c:\fm\log\fileman.log
c:\fm\database
Dossier où il y aura la base des utilisateurs (Access)
Permissions NTFS:
- Full control pour le groupe AdminDocUnil@ad
- Full control pour le groupe Administrators
de docunil12
- Modify, Write, Read & Execute, List Folder
Contents et Read pour Domain Users
c:\fm\admin
Dossier où il y aura les script de Fileman pour l'admin de fm
Permissions NTFS:- Full control pour le groupe AdminDocUnil@ad
- Full control pour le groupe Administrators
de docunila
- Read & Execute, List Folder Contents et
Read à aroy@ad et gesu@ad et cgreiner@ad
c:\fm\src.6.3h
Dossier où il y a les source originale de la version 6.3h de Fileman
c:\fm\arbetur-original-6.3h
Dossier avec l'application Fileman originale Fileman
Permissions NTFS:
- Full control pour le groupe AdminDocUnil@ad
- Full control pour le groupe Administrators
de docunil12
c:\fm\w32-Controls
Permissions NTFS:
- Full control pour le groupe AdminDocUnil@ad
- Full control pour le groupe Administrators
de docunila
- Read & Execute, List Folder Contents et
Read pour Domain Users
c:\fm\arbetur\global.asa
Contient la configuration de fileman
On enregistre le module FathUpload.dll (comme admin):
copy c:\fm\w32-Controls\FathUpload.dll c:\Windows\system32
copy c:\fm\w32-Controls\FathUpload.dll %windir%\SysWOW64
regsvr32 c:\Windows\System32\FathUpload.dll /!\ Getting error module failed to load (ça fonctionne après avoir copié la .dll dans le dossier SysWOW64)
Site webdoc12
Démarrer IIS Manager
Item Sites (bouton droit de la souris)
Add Web Site
Site Name: webdoc12
Application Pool: webdoc12 webdoc (see page 21)
Physical path: C:\fm\arbetur
Connect As: Application user (pass-through authentication)
Binding: https, 130.223.27.66, 443
SSL certificate:webdoc.unil.ch
NEW in Windows 2012 : Right click on webdoc → Advanced settings → Enable 32 bit applications : True
Item webdoc12
Area IIS: double-clic sur Authentication
Disable toutes les méthodes d'authentification sauf
Basic Authentication: enable
Basic Authentication: bouton droit de la souris "Edit"
Default domain: ad.unil.ch
Realm: webdoc.unil.ch
Area IIS: double-clic sur Authorization Rules
Dans la partie centrale de la fenêtre
Retirer toutes les rules existantes
Bouton droit de la souris
Add Allow Rule
Specified roles or user groups: Authenticated Users
Site webdoc12 (http -> https)
Démarrer IIS Manager
Stopper le site par défaut
Item Sites (bouton droit de la souris)
Add Web Site
Site Name: webdoc12-http-https
Application Pool: on laisse le défaut
Physical path: C:\inetpub\wwwroot
Binding: http, 130.223.27.66, 80
Item webdoc12-http-https
Area IIS: double-clic sur HTTP Redirect
Activer Redirect to this destination: https://webdoc12.unil.ch
IIS7: ajout du site ftpdoc12
Site ftpdoc12
Démarrer IIS Manager
Item Sites (bouton droit de la souris)
Add FTP Site
FTP site name: ftpdoc12
Physical path: \\docunil\docs
IP address: 130.223.27.112
Port: 21
Allow SSL
Sélectionner le certificat Quovadis
Authentication: Basic (seulement)
Allow Access: Specified roles or user groups
Authenticated Users
Permissions: Read, Write
La propriété "Pass-through authentication" est définie automatiquement.
Item ftpdoc12
FTP Authentication
Clic droit sur Basic Authentication
Default domain:ad.unil.ch
Item ftpdoc12
FTP Directory Browsing
Directory Listing Style: UNIX
Display the following information in directory listings : Activer « Virtual directories ».
Item ftpdoc12
Colonne de droite, View virtual directories
Colonne de droite, add virtual directory
alias : groups
Physical path : \\docunil\docs1\groups
Connect Pass-through authentication
HTTPCOMMANDER a été testé mais n'est pas utilisé en prod
IIS7: ajout du site webdoc12 avec HTTPCommander (sept 2010)
On commence par supprimer l'ancien site webdoc8.
On crée le dossier C:\InetPub\webdoc et on lui met les mêmes droits que C:\InetPub\wwwroot .
On crée le site webdoc8
Démarrer IIS Manager
Bouton droit su Sites: Add Web Site
Site name: webdoc8
Physical path: C:\InetPub\webdoc
Type: https
Ip address: 130.223.27.179
SSL certificate: webdoc.unil.ch
Le 30.08.2010, téléchargement depuis le site http://www.element-it.com de HTTPCommanderAJS1.0Windows.zip, je renomme ce zip en HTTPCommanderAJS1.0Windows-20100830.zip
Le 15.09.2010, téléchargement depuis le site http://www.element-it.com de HTTPCommanderAJS1.0Windows.zip, je renomme ce zip en HTTPCommanderAJS1.0Windows-20100915.zip
Dans un premier temps, on utilise la version du 30.08.2010 appelée par moi version 1.
C'est à cette version que correspond les sources reçues.
La version du 15.09.2010 appelée par moi version 2.
Les sources reçues ne semble pas correspondre à cette version.
Dans le dossier C:\InetPub\webdoc, on déballe le .zip. Obtient le dossier HTCOMNET
On copie le contenu de HTCOMNET dans C:\InetPub\webdoc
Dans IIS Manager:
Clic gauche sur webdoc8
Double clic sur Authentication
Disable Anonymous Authentication
Enable Basic Authentication
Edit Basic Authentication:
Default domain: ad.unil.ch
Realm: WebDoc
Toutes les autres "Authetication" sont disable
Edition du fichier C:\InetPub\webdoc\Web.config
On ajoute aroy comme administrateurs:
<add key="administrators" value="aroy,Administrator"/>
On ajoute la clé de licence:
<add key="licenseKey" value="B01DF72D1EEED3C38B90F6D8277DFD59A2EB2E4800273903F117070164338E9C"/>
Item DOCUNIL8
Item Feature Delegation
Custom Delegation
Mettre tout à "Read/write" si possible pour le serveur webdoc8
(pour que le fichier Web.config de HT soit pris en compte)
Donner tous les droits à ad\aroy sur le dossier C:\InetPub\webdoc\Data
Se connecter comme aroy sur https://webdoc8.unil.ch
Clic Administration
ON enlève toutes les définitions de dossier
On ajoute
Folder name: home
Phyical path: \\docunil.unil.ch\docs\users\%USERNAMEUNIL%
Add user: regex:.*
On laisse les permissions par défaut
Folder name: users
Phyical path: \\docunil.unil.ch\docs\users
Add user: regex:.*
On laisse les permissions par défaut
Folder name: groups
Phyical path: \\docunil.unil.ch\docs1\groups
Add user: regex:.*
On laisse les permissions par défaut
IIS7: ajout du site webdoc8 avec HTTPCommander (sept 2010)
Dans C:\InetPub\webdocdev\HT, je crée
· C:\InetPub\webdoc\HT\HT1orig
o Qui est la version 1 originale
· C:\InetPub\webdocdev\HT\HT1mod
o Qui est la version 1 modifiée
· C:\InetPub\webdocdev\HT\HTF2orig
o Qui est la version 2 originale, authentification par formulaire
HTTPCommander: modification des sources
Je charge les sources reçues et je fais les modifications suivantes:
Modification pour avoir le dossier home de chaque utilisateur:
· Classe Utils du projet HttpCommander, méthode GetResultantPath, ajouter
if (resultantPath.Contains("%USERNAME1%"))
{
resultantPath = resultantPath.Replace("%USERNAME1%", Utils.CurrentUserName.Substring(0, 1));
}
if (resultantPath.Contains("%USERNAME12%"))
{
resultantPath = resultantPath.Replace("%USERNAME12%", Utils.CurrentUserName.Substring(0, 2));
}
Modification pour avoir le tri alphabétique croissant OK dans la partie droite
· Dans le fichier Comparer.cs , ajouter la classe
public class NameComparerAsc : IComparer<FileSystemInfo>
{
#region IComparer<FileInfo> Members
public int Compare(FileSystemInfo x, FileSystemInfo y)
{
return x.Name.CompareTo(y.Name);
}
#endregion
}
· Dans le fichier GridHandler.ashx.cs remplacer
JArray data = new JArray();
IComparer<FileSystemInfo> comparer = null;
Par
JArray data = new JArray();
IComparer<FileSystemInfo> comparer = new NameComparerAsc();
Modification pour avoir le tri alphabétique croissant OK dans la partie gauche (Folders)
· Dans le fichier TreeHandler.ashx.cs remplacer
if (p.ListFolders)
{
foreach (DirectoryInfo di in diRoot.GetDirectories())
{
data.Add(new JObject(
Par
if (p.ListFolders)
{
IComparer<FileSystemInfo> comparer = new NameComparerAsc();
DirectoryInfo[] dirs = diRoot.GetDirectories();
Array.Sort<FileSystemInfo>(dirs, comparer);
foreach (DirectoryInfo di in dirs)
{
data.Add(new JObject(
· On régénère la solution et on remplace HttpCommander.dl dans C:\InetPub\webdoc\bin. On fait déjà le test dans HT1mod du serveur webdocdev
Documentation IIS8: fichiers de configuration
Répertoire principal de configuration (en particulier le fichier applicationHost.config):
C:\Windows\System32\inetsrv\config
Répertoire de configuration de .Net (en particulier le fichier machine.config):
C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG
Dans chaque "web content directories", il peut y avoir aussi un fichier web.config pouvant contenir des structures de configuration IIS ou .Net applicable au niveau où il se trouve et en dessous.
In terms of inheritance hierarchy, the root file is machine.config, then web.config at the same directory (referred to as root web.config), then applicationHost.config, then the optional web.config files along the namespace.
In some cases it is useful to have the web.config file include some other .config file. This can be done by using the configSource attribute. Currently it is limited to point to relative physical paths in sub-directories, for security reasons (i.e. file A can only include file B if B is in physical subdirectory of A). Here's a basic example that shows how to use configSource:
<!-- in inetsrv\applicationHost.config -->
<configuration>
<system.webServer>
<!-- mimemaps moved by the customer to a different file -->
<!-- so that this file is shorter and more readable -->
<staticContent configSource="staticContent.config"/>
…
Activer les Custom Properties (06.03.2013)
Enabling Custom Properties Using IIS Manager
Voir http://www.iis.net/learn/publish/using-webdav/how-to-use-custom-properties-with-webdav
- In IIS Manager, in the Connections pane, expand the Sites node in the tree, then click the Default Web Site.
- As shown in the image below, double-click the WebDAV Authoring Rules feature.
- When the WebDAV Authoring Rules page is displayed, click the WebDAV Settings task in the Actions pane.
- When the WebDAV Settings page is displayed, specify the following options:
- Once you have completed the above steps, click the Apply task in the Actions pane.
Nouvel essai d’install de fileman sur win2008 (mars 2013)
Voir : http://www.alexthissen.nl/blogs/main/archive/2008/02/18/running-classic-asp-on-iis-7.aspx
Running classic ASP on IIS 7
It's not really difficult to run classic ASP on Internet Information Server 7, but there are some bumps down the road. Here's a little help to get you started:
First of all, check whether you have the Windows feature for ASP installed. Go to Programs and Features in Control Panel and click Turn Windows features on and off. Navigate down the tree of features and make sure ASP is checked.
Next, go to Internet Information Server (IIS) Manager (run inetmgr from the Start Search box to get there fast) and create a new application pool for ASP. (DOCUNIL12 -> Application Pools -> right click -> « Add Application Pool »)
This should be a "No managed code" and "Classic" app pool if you do not intend to mix and match the .NET Framework and ASP.NET in the same pool. The Integrated pipeline would not make sense, because it only applies to integrating HTTP modules that are either native or managed .NET implementations.
I had some difficulties setting the identity of the application pool to the new built-in IUSR account. This account replaces the former computer account called IUSR_machinename. Same goes for the IIS_WPG group for application pools that is replaced by the builtin group IIS_IUSRS. Read more about it here. Under the Advanced Settings of the "ASP" application pool you will find the Identity property under Process Model. The default value is NetworkService. I found no way to set this to the BUILTIN\IUSR by choosing SpecificUser and setting BUILTIN\USR under Identity SpecificUser Credentials. I guess that you shouldn't be running ASP sites under IUSR anymore. It is used for anonymous users automatically.
To easy the administration effort, there is a way to turn off the IUSR account without turning off anonymous identification:
appcmd set config -section:anonymousAuthentication -userName:"" --password
And lastly, create your new web application. For example, copy the ASP site folder under C:\inetpub\wwwroot, where the default installation location of "Default Web Site" of IIS. Convert the folder (or virtual directory) to an application and choose "ASP" as the application pool. Check whether the .asp extension is mapped to the correct handler and whether it is enabled. Also make sure that the identity of your application pool has sufficient rights (and no more than that) to access the files in the web site's folder.
One final note: whenever there is a error in the ASP website, and you get this error message: "An error occurred on the server when processing the URL. Please contact the system administrator",
it's probably because by default no error messages are sent to the client in IIS7. Change the setting "Send Errors To Browser" of your web application under the ASP icon to reveal such errors.
Side note: if you get the nice Internet Explorer 500 error message and no particular details at all, remember to uncheck the "Show friendly HTTP error messages" checkbox under Internet Options, Advanced of IE.
Some more tips for classic ASP developers on IIS7 can be found on Bills' IIS blog.