Thử thêm cái coi lào
Feb 17

Configuring WebAdmin to run under IIS 6

WebAdmin can either run under MDaemon's built-in WebServer (default) or IIS. For performance or administrative reasons, you may wish to have WebAdmin run under IIS instead. The steps below detail how you can achieve this under IIS 6 (to do so under IIS 5 please consult http://www.zensoftware.co.uk/kb/article.aspx?id=10201&cNode=8G1U0G)...


Creating a new application pool for WebAdmin:

1.  Open the Internet Information Services Manager.
2.  Right-Click on 'Application Pools'.
3.  Choose 'New/Application Pool'.
4.  Name the Pool 'Alt-N' and click the OK button.
5.  Right-Click on 'Alt-N'.
6.  Click on 'Properties'.
7.  Click on the 'Performance' tab.
8.  Uncheck the options for 'Shutdown worker processes after being idle for (time in minutes):' and 'Limit the kernel request queue (number of requests)'.
9.  Click on the 'Identity' tab.
10. In the dropdown for Predefined, choose 'Local System'.
11. Click the OK button.

Creating a Virtual directory for WebAdmin:

1.  Open Internet Information Services Manager.
2.  Right-Click on Default Web Site.
3.  Select New | Virtual Directory.
4.  This will launch a wizard. Click Next to begin.
5.  Specify an alias for the Virtual Directory (e.g WebAdmin).
6.  Click Next.
7.  In the Path field enter the path to the WebAdmin Templates directory (e.g C:\MDaemon\WebAdmin\Templates).
8.  Click Next.
9.  Leave the 'Read' and 'Run Scripts' options checked.
10. Click Next.
11. Click Finish to complete the wizard.  
12. Right-click on the Virtual Directory that was created.
13. Select 'Properties'.
14. On the Virtual Directory tab change the application pool to 'ALT-N'.
15. Click the Configuration button.
16. Click the 'Add' button to add an ISAPI extension mapping.
17. In the Executable field enter the path to the WebAdmin.dll file. The default path is C:\MDaemon\WebAdmin\Templates\WebAdmin.dll.
18. In the Extension field enter .wdm.
19. Check the boxes for Script Engine and Verify the file exists.
20. Click the OK button.
21. All other mappings can also be removed if you choose to, then click the OK button.
22. Select the Documents tab.  
23. Ensure that Enable default content page is checked.
24. Add login.wdm to the list and remove all others.
25. Click the 'OK' button and exit the virtual directory properties dialog.

Add .WDM to the list of allowed web extensions:

1.  Click on the 'Web Service Extensions' folder (in the IIS MMC).
2.  Click the 'Add new web service extension' link.
3.  In the Extension name field enter WebAdmin.
4.  Click the Add button and browse to the WebAdmin ISAPI extension; (C:\MDaemon\WebAdmin\Templates\WebAdmin.dll).
5.  Check the Set extension status to allowed checkbox.
6.  Click the OK button to exit the dialog.
7.  Open the MDaemon GUI.
8.  Click on  Setup.
9.  Click WebAdmin.
10. On the WebAdmin tab, make sure the option for 'WebAdmin is running under IIS' is checked.
11. Click OK.

(http://www.zensoftware.co.uk/kb/article.aspx?id=10200&cNode=8G1U0G)