ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WEBDEV administrator / WEBDEV Application Server administrator / 07. Appendix 2: Configuring the web servers
  • Configuring the server for the CGI protocol (AWP)
  • Configuring the server for the WEBDEV sites and the SOAP Webservices
  • Configuring the server for the REST Webservices
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Configuring the Apache 2.0 and 2.2 server
Warning
From version 28, only Apache 2.4 (or a later version) can be used. Apache 2.0 and 2.2 are old versions.
Configuring the server for the CGI protocol (AWP)
  1. Edit the "httpd.conf" file in a text editor. This file is located in the "/Conf" subdirectory of the Apache server setup directory.
  2. Add the alias definition for the CGI protocol (WD290AWP.EXE) to the "httpd.conf" file with the following lines:
    Alias /WD280AWP/res/ "/usr/local/WEBDEV/28.0/AWP/res/"
    <directory "/usr/local/WEBDEV/28.0/AWP/res/">
    Order allow,deny
    Allow from all
    </directory>
    AliasScript /WD280AWP/ "/usr/local/WEBDEV/28.0/AWP/"
    <directory "/usr/local/WEBDEV/28.0/AWP/">
    Order allow,deny
    Allow from all
    </directory>
    AddType application/WEBDEV28-awp .awp
    Action application/WEBDEV28-awp /WD280AWP/WD280AWP virtual
    AddType application/WEBDEV28-awws .awws
    Action application/WEBDEV28-awws /WD280AWP/WD280AWP virtual
    DirectoryIndex index.awp
Configuring the server for the WEBDEV sites and the SOAP Webservices
To configure the Web server:
  1. Edit the "httpd.conf" file in a text editor. This file is located in the "/Conf" subdirectory of the Apache server setup directory.
  2. Add the alias definition of the images of each WEBDEV site into the "httpd.conf" file: Alias /<Name Image Alias>/ "Directory of site images". For example, for the "MySite" site:

    Alias /MYSITE_WEB/ "/home/twr/wb27/site/MySite/MYSITE_WEB/"
    <Directory /home/twr/wb27/site/MySite/MYSITE_WEB/>
    Order allow,deny
    Allow from all
    AddType text/cache-manifest .manifest
    AddType image/svg+xml .svg
    AddType video/webm .webm
    AddType text/vtt .vtt
    </Directory>
    <Files MySite>
    ForceType application/WEBDEV28-awp
    Allow from all
    </Files>
Caution:
  • With the Apache server, the alias name is "case sensitive". You must comply with the case defined for the alias in the HTML pages that refer to the directory of images.
  • An alias of images must be defined for each WEBDEV site.
Configuring the server for the REST Webservices
To configure the Web server:
  1. Edit the "httpd.conf" file in a text editor. This file is located in the "/Conf" subdirectory of the Apache server setup directory.
  2. Add into the "httpd.conf" file an entry for each first unique resource component:
    <Files FirstResourceComponent>
    Allow from all
    Action application/WEBDEV28-rest /WD280AWP/WD280Awp.exe/REST/<Webservice name> virtual
    ForceType application/WEBDEV28-rest
    </Files>
  3. For example, for the "WSMySiteREST" REST Webservice that exports "Customer", "/Customer/xxx/Invoice" and "/Order", you must add:
    <Files Client>
    Allow from all
    Action application/WEBDEV28-rest /WD280AWP/WD280Awp.exe/REST/WSMySiteREST virtual
    ForceType application/WEBDEV28-rest
    </Files> <Files Command>
    Allow from all
    Action application/WEBDEV28-rest /WD280AWP/WD280Awp.exe/REST/WSMySiteREST virtual
    ForceType application/WEBDEV28-rest
    </Files>
Minimum version required
  • Version 23
Comments
Click [Add] to post a comment

Last update: 01/12/2023

Send a report | Local help