Hi thanks for the help but I solved it by installing apache in ubuntu console. This created a www folder and things inside this folder worked with generate URL function. I dont understand why it works but hey it works. :)
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
/root/domainsshould not be in the URL. So I believe the "Web root path" should be
/root/domains. But maybe some other settings are needed, like "URL root path". If it is virtual web host, you definitely need to use a specific host name, not just IP address.