ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WEBDEV administrator / WEBDEV Application Server administrator / 07. Appendix 2: Configuring the web servers
  • Configuring the "Apache 2.4" server for WEBDEV
  • Configuring the server for the CGI protocol (AWP)
  • Configuring the server for the WEBDEV websites and the SOAP web services
  • Configuring the server for the REST web services
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Configuring the Apache 2.4 server
Configuring the "Apache 2.4" server for WEBDEV

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 installation directory.
  2. Add the alias definition for the CGI protocol (WD300AWP.EXE) to the "httpd.conf" file with the following lines:
    Alias /WD300AWP/res/ "/usr/local/WEBDEV/30.0/AWP/res/"
    <directory "/usr/local/WEBDEV/30.0/AWP/res/">
    Require all granted
    </directory>
    AliasScript /WD300AWP/ "/usr/local/WEBDEV/30.0/AWP/"
    <directory "/usr/local/WEBDEV/30.0/AWP/">
    Require all granted
    </directory>
    AddType application/WEBDEV30-awp .awp
    Action application/WEBDEV30-awp /WD300AWP/WD300AWP virtual
    AddType application/WEBDEV30-awws .awws
    Action application/WEBDEV30-awws /WD300AWP/WD300AWP virtual
    DirectoryIndex index.awp
Configuring the server for the WEBDEV websites and the SOAP web services
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 installation directory.
  2. Add the definition of the image alias for each WEBDEV site to the "httpd.conf" file:
    Alias /<Name Image Alias>/ "Directory of site images"

    For example, for the "MonSite" site:
    Alias /MYSITE_WEB/ "/home/twr/wb30/site/MySite/MYSITE_WEB/"
    <Directory /home/twr/wb30/site/MySite/MYSITE_WEB/>
    Require all granted
    AddType text/cache-manifest .manifest
    AddType image/svg+xml .svg
    AddType video/webm .webm
    AddType text/vtt .vtt
    </Directory>
    <Files MySite>
    ForceType application/WEBDEV30-awp
    Require all granted
    </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 website.
Configuring the server for the REST web services
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 installation directory.
  2. Add into the "httpd.conf" file an entry for each first unique resource component:
    <Files FirstResourceComponent>
    Require all granted
    Action application/WEBDEV30-rest /WD300AWP/WD300AWP.exe/REST/<Web service name> virtual
    ForceType application/WEBDEV30-rest
    </Files>
  3. For example, for "WSRESTfulWebsite", which exports "/Customer", "/Customer/xxx/Invoice" and "/Order", add:
    <Files Client>
    Require all granted
    Action application/WEBDEV30-rest /WD300AWP/WD300AWP.exe/REST/WSRESTfulWebsite virtual
    ForceType application/WEBDEV30-rest
    </Files>
    <Files Command>
    Require all granted
    Action application/WEBDEV30-rest /WD300AWP/WD300AWP.exe/REST/WSRESTfulWebsite virtual
    ForceType application/WEBDEV30-rest
    </Files>
Minimum version required
  • Version 20
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help