Hello,
so i just love hiawatha but i couldn't figure this out:
I have a domain: "mydomain.com".
I use cloudflare as dns and i added Type:CName, Name:api, Value:mydomain.com, TTL: auto - so i would have a subdomain (api.mydomain.com).
In my hiawatha.conf i added a VirtualServer like this:
VirtualHost {
Hostname = api.mydomain.com
WebsiteRoot = /var/www/simpleRestAPI
StartFile = index.php
AccessLogfile = /var/www/logs/access.log
ErrorLogfile = /var/www/logs/error.log
TimeForCGI = 5
UseFastCGI = PHP5
ExecuteCGI = yes
UseToolkit = REST
}
But instead of this the default Page is shown... is the Hostname wrong? Also tried with "api" and that did not work either... I am thankful for every hint!