internal and external redirects are working. Added an option for port to listen to in config