Web Server Application Wizard for Linux

From RAD Studio
Jump to: navigation, search

Go Up to New Web Server Application


File > New > Other > Delphi Projects > WebBroker > Web Server Application

To create a web server application for Linux, select Linux in the New Web Server Application Wizard and follow the steps below.

WebBroker Project Type page

On this page, select the type of project.

  1. Select the required type of web server application:
    • Apache dynamic link module: a server that hosts static or dynamic websites, providing secure and efficient web server features as SSL (Secure Sockets Layer) and virtual domains. Apache supports HTTP and HTTPS.
    • Stand-alone console application: sets up an environment for developing web server applications that display a form.
    • CGI stand-alone executable: a console application that receives client request information on standard input and passes the results back to the server on standard output. This data is evaluated by TCGIApplication. Each request message is handled by a separate instance of the application. Selecting this type of application adds the library header of the project files and required entries to the uses list and exports clause of the project file.
  2. Click Next.

Linux CGI.png

Apache Module Options page

This page opens only if you selected the Apache dynamic link module on the WebBroker Project Type page.

Specify the following:

  1. Apache version
  2. Apache module
  3. Apache unit: this value is predefined. You cannot edit it.
  4. Click Finish.

Webserver linux02.png

Port Number page

On this page, specify the ports that the web server application will use to listen to the client requests.

  1. To check the availability of the specified port, click Test Port.
  2. To select an open port automatically detected by the DataSnap Server, click Find Open Port.
Note: Select the HTTPS check box to use the HTTPS protocol. The HTTPS communications port will be set to 443, which is a commonly used port by IIS, and the wizard will display an additional step that prompts for information regarding the X.509 certificate files.

Webserver linux03.png

X.509 Certificates page

This step appears only if you select the HTTPS communication protocol on the Port Number page.

  1. To use the X.509 certificates, enter the following data:
    • Certificate file name: holds the X.509 certificate (*.pem).
    • Key file name: holds the key.
    • Key file passowrd: contains the password for the key file.
    • Root certificate file name: holds the root certificate.
  2. To validate the selection, click Test.
  3. Click Finish

Webserver linux04.png

See Also