You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All CLI-only scripts and application files will be outside the public directory making the system more secure. Scripts, node modules, logs, backups, etc. that are created in the root directory won't be available by default.
On the production:
the document root should be set to /path/to/espo/public/;
an alias /client/ => /path/to/espo/client/ should be added.
Instances working on the Apache webserver with .htaccess enabled (AllowOverride) should work after upgrade w/o any actions required. Although it's recommended to set the document root to look at the public dir for security reasons.
For other webservers (Nginx and others) making small changes in the configuration will be required.
Apache
Config example:
DocumentRoot /var/www/html/public/
Alias /client/ /var/www/html/client/
<Directory /var/www/html/>
AllowOverride None
</Directory>
<Directory /var/www/html/public/>
AllowOverride All
</Directory>
A config example for a portal with a custom URL (replace {PORTAL_ID} with a portal ID):
DocumentRoot /var/www/html/public/portal/
Alias /client/ /var/www/html/client/
Alias /api/v1/ /var/www/html/public/api/v1/
<Directory /var/www/html/>
AllowOverride None
</Directory>
<Directory /var/www/html/public/>
AllowOverride All
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=ESPO_PORTAL_ID:{PORTAL_ID}]
</IfModule>
All CLI-only scripts and application files will be outside the public directory making the system more secure. Scripts, node modules, logs, backups, etc. that are created in the root directory won't be available by default.
On the production:
/path/to/espo/public/
;/client/
=>/path/to/espo/client/
should be added.Instances working on the Apache webserver with .htaccess enabled (AllowOverride) should work after upgrade w/o any actions required. Although it's recommended to set the document root to look at the
public
dir for security reasons.For other webservers (Nginx and others) making small changes in the configuration will be required.
Apache
Config example:
A config example for a portal with a custom URL (replace
{PORTAL_ID}
with a portal ID):Nginx
Config example:
Config example for portal (replace
{PORTAL_ID}
with a portal ID):The text was updated successfully, but these errors were encountered: