Forum

Cloudflare CName Subdomain and hiawatha

Steff
13 November 2015, 16:24
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!


Steff
13 November 2015, 17:08
Ok i think it just took some time to handle my CName Change... it is working now.
Hugo Leisink
14 November 2015, 09:57
That's good to hear.
This topic has been closed.