changed settings file to work for virtualhosts