Application structure¶
Introduction¶
This page outlines the general directory structure that applications must follow to run successfully on the Digital Experience Platform (DXP). Adhering to these guidelines ensures that your application is compatible with the DXP infrastructure.
PHP and HTML projects¶
For PHP and HTML-based projects, the DXP uses Apache as the web server. The server expects the docroot
folder in your
application directory to be set as the DocumentRoot
. Ensure that this folder contains an index.html
or index.php
file, as it will be used to serve your application.
For most deployment methods, this is the only requirement. However, if you're using the Drupal-specific Git reference deployment method, additional requirements and restrictions apply. Be sure to review that specific documentation for more details.
Node.js projects¶
Node.js projects have different requirements. The application directory must include a package.json
file that contains
a scripts.start
entry to define how the application should be started.
For further details on setting up Node.js projects, refer to the working on a Node.js project guide.