reconfiguring server to work with AWS instance.