mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-17 22:41:01 +01:00
23 lines
627 B
Plaintext
23 lines
627 B
Plaintext
This demo demonstrates the routing mechanism of fpWeb.
|
|
|
|
It can be run as a CGI or as a HTTP standalone server program.
|
|
|
|
In order to get a correct set of routes in the demo, demorouting.ini file
|
|
must be configured correctly and placed next to the binary.
|
|
|
|
There is a different section for each type of binary: (CGI or Standalone)
|
|
|
|
Each section needs at least the BaseURL key, this is the URL where the
|
|
application can be reached.
|
|
|
|
Example:
|
|
|
|
[CGI]
|
|
; Assuming the demo is in cgi-bin
|
|
BaseURL=http://localhost/cgi-bin/demorouting.cgi
|
|
|
|
[Standalone]
|
|
Port=8080
|
|
; Optional, the following is the default.
|
|
;BaseURL=http://localhost:8080/
|