changed server to use hostname/path structure