Web Application Properties

To make the web server use a virtual directory as a web application, it is necessary to define web application properties for this virtual directory. The application node serves for this purpose. This node is presented by type VDirAppType (virtdir.xsd). It has the following graphics model:

 

The following sample packet creates a virtual directory and defines it as a web application:

<packet>
<virtdir>
<create>
   <site-id>1</site-id>
   <name>/my_vdir</name>
   <properties>
      <require-ssl>true</require-ssl>
      <application>
          <enabled/>
          <parent-paths>true</parent-paths>
          <run-in-mta>true</run-in-mta>
          <aspnet-version>1.1</aspnet-version>
      </application>
      <execute-perm>none</execute-perm>
   </properties>
</create>
</virtdir>
</packet>

 

The following packet creates a virtual directory and sets the disabled web application mode for it:

<packet>
<virtdir>
<create>
   <site-id>1</site-id>
   <name>/my_vdir</name>
   <properties>
      <require-ssl>true</require-ssl>
      <application>
          <disabled/>
      </application>
   </properties>
</create>
</virtdir>
</packet>