Attention! Helicon Tech Blog has moved to www.helicontech.com/articles/

Thursday, April 22, 2010

Titbits: Making Ape work with Plesk 9.5.1

If you have Ape and Plesk installed on your server, you may come across the issue that Ape is not working it it's entirity. This may be caused by the fact that Plesk overrides the handlers list for each domain it creates. Like this:
<location path="Example.com">
        <system.webServer>
            <handlers accessPolicy="Read, Script">
                <clear />
                <add name="Plesk_Handler_05171048" path="*.dll" verb="*" 
                    modules="IsapiModule" resourceType="File" 
                    requireAccess="Execute" allowPathInfo="true" />
                <add name="Plesk_Handler_05171080" path="*.exe" verb="*" 
                    modules="CgiModule" resourceType="File" 
                    requireAccess="Execute" allowPathInfo="true" />
                <add name="StaticFile" path="*" verb="*"
                    modules="StaticFileModule,DefaultDocumentModule,
                    DirectoryListingModule" resourceType="Either" />
            </handlers>
            ...
    </location>
To add handler for Helicon Ape, you need to add this simple spell to the root web.config for the site:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
 
    <handlers>
      <add name="Helicon.Ape Handler" path="*.apehandler" verb="*" 
          type="Helicon.Ape.Handler" resourceType="Unspecified" 
          preCondition="integratedMode" />
    </handlers>

  </system.webServer>
</configuration>

Guess, this small hint will make Plesk and Ape cohabitation on your server more peaceful.

Best regards,
Sergey, Anton - Helicon Tech Team

1 comment: