Added directives for explicit host and port and fixed #5