Ok Hugo now i have added virtual host and gave host name www.newakhil.com. This server set up is in amazon web services. Now i typed the host name in browser and it is not loading index.html file. This is my configuration i gave all necessary permissions to hiawatha.
# GENERAL SETTINGS
ServerId = www-data
ConnectionsTotal = 1000
ConnectionsPerIP = 25
SystemLogfile = /usr/local/var/log/hiawatha/system.log
GarbageLogfile = /usr/local/var/log/hiawatha/garbage.log
# BINDING
Binding {
Port = 80
}
# CGI SETTINGS
FastCGIserver {
FastCGIid = PHP7
ConnectTo = /run/php/php7.0-fpm.sock
Extension = php
}
# DEFAULT WEBSITE
Hostname = 127.0.0.1
WebsiteRoot = /usr/local/var/www/hiawatha
StartFile = index.html
AccessLogfile = /usr/local/var/log/hiawatha/access.log
ErrorLogfile = /usr/local/var/log/hiawatha/error.log
# VIRTUAL HOST
VirtualHost {
Hostname = www.newakhil.com
WebsiteRoot =/usr/local/var/www/newakhil
AccessLogfile =/usr/local/var/log/newakhil/access.log
ErrorLogfile =/usr/local/var/log/newakhil/error.log
TimeForCGI = 5
UseFastCGI = PHP7
# UseToolkit = banshee
# UseDirectory = static, files
}
Thanks
Hugo