Closed jakdept closed 9 years ago
Instead of using a .ini configuration file, rewrite the server to use a .json config file. An example config file is:
.ini
.json
{ "global": { "port": "8080", "hostname": "wiki.hostbaitor.com" }, "server": [ { "Path": "/var/www/wiki/", "Prefix": "/", "Default": "index", "ServerType": "markdown", "Restricted": [ "internal", "handbook" ] }, { "Path": "/var/www/wiki/", "Prefix": "/raw/", "Default": {}, "ServerType": "raw", "Restricted": [ "md", "ini", "json" ] }, { "Path": "/var/www/backend/public/", "Prefix": "/site/", "Default": {}, "ServerType": "raw", "Restricted": [ "md", "ini", "json" ] } ] }
Server compiles as of 3ce867714713749ac8acdb871367f6a3b8b80c24 after rewrite and reworking for config.json.
resolved
Instead of using a
.ini
configuration file, rewrite the server to use a.json
config file. An example config file is: