Hi everyone, I set up a sub domain
in hiawatha on windows, which I succeeded in doing.
I am now trying to set up a sub domain using hiawatha on centOS7.
I have placed this in hiawatha.conf just as I did under windows.
Hiawatha seems fine with it and starts up without errors.
But when I go to test.site.com I end up getting redirected to a google search for the same.
Does anyone know why this is, I know I got the same before I edited my windows hosts file
and added 127.0.0.1 test.127.0.0.1 which resolved this under windows and hiawatha,
but I do not know what to edit under centOS to achieve the same.
As this time I am actually accessing the sub domain online,
I have a CNAME in my external DNS providers entry for test.site.com which according
to mxtoolbox is ok, when I type test.site.com in the DNS lookup it returns the record,
but shows it as an A record for the domain site.com, should I have created an a record instead of a CNAME.
Was I right in creating the A record, or can I achieve this like I did on windows, or do I need a combination of both.
VirtualHost {
Hostname = test.site.com, *.test.site.com
WebsiteRoot = /var/www/hiawatha/test
StartFile = index.html
AccessLogfile = /var/www/hiawatha/test/access.log
ErrorLogfile = /var/www/hiawatha/test/error.log
#TimeForCGI = 10
#UseFastCGI = PHP5
#UseToolkit = banshee
}
IS THIS A VALID VIRTUALHOST ENTRY, IF SO, what else do I need to alter to make this work.
Thank you kindly, john
IS THIS A VALID VIRTUAL HOST ENTRY.