Please check Apache log files (/var/log/apache2/*) to see why it happened.
Personally, if there's no firewall/router between your browser and your server, the easiest way to solve this issue is reinstalling iRedMail. Please monitor the terminal output while installing, if there's any error message, please paste them here to help troubleshoot.