This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
WEB SET ROOT FOLDER

WEB SET ROOT FOLDER 


 

WEB SET ROOT FOLDER ( rootFolder ) 
Parameter Type   Description
rootFolder  String in Pathname of Web server root folder

The WEB SET ROOT FOLDER command is used to modify the default root folder where 4D looks for the HTML files requested of the Web server.

This command does not take the default root folder that may have been set in the Database Settings into account. For more information about this folder, please refer to the Connection Security section.

The location of the root folder can be expression either in HTML syntax (URL type), or in system syntax (absolute path):

  • HTML syntax: folder names are separated by a slash ("/"), regardless of the platform you use.
  • System syntax: absolute pathname (“long name”) respecting the syntax of the current platform, for example:
    • (Mac OS) Disk:Applications:myserv:folder
    • (Windows) C:\Applications\myserv\folder

Notes:

  • The Web server will need to be restarted in order for the new root folder to be taken into account.
  • You can find out the location of the current root folder at any time using the Get 4D folder command.

If you specify an invalid pathname, an OS File manager error is generated. You can intercept the error with an ON ERR CALL method. If you display an alert or a message from within the error method, it will appear on the browser side.



See also 

Get 4D folder
ON ERR CALL

 
PROPERTIES 

Product: 4D
Theme: Web Server
Number: 634

This command modifies the Error system variableThis command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Modified: 4D v11 SQL
Renamed: 4D v13 (SET HTML ROOT)

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)