add webserver to iredmail server same droplet / domain

April 22, 2014 2.2k views
I followed the directions for installing iredmail server and it works. http://www.cloudservers.com/how-to-install-iredmail-on-ubuntu-12-04/ http://192.168.1.200/iredadmin/ gets me to administrator Dashboard http://192.168.1.200/mail/ gets me to get open the Webmail Both work When I try to go to http:/myipadres: 80 it jumps to http://192.168.1.200/mail/ My hostname file is mydomain.us My hosts file is 127.0.0.1 mail.mydomain.us mydomane localhost hostname -f mydomain.us How can I make the http: service work correctly also to show index.html in var/www nmap mydomainname.us Host is up (0.000018s latency). Not shown: 990 closed ports PORT STATE SERVICE 22/tcp open ssh 25/tcp open smtp 80/tcp open http 110/tcp open pop3 143/tcp open imap 443/tcp open https 587/tcp open submission 993/tcp open imaps 995/tcp open pop3s 6001/tcp open X11:1
1 Answer
The iRedMail installer installs an index.html file to /var/www/index.html that automatically redirects to /mail:


<html>
<head>
<meta HTTP-EQUIV="REFRESH" content="0; url=/mail/">
</head>
</html>


Remove the meta line, and it will no longer redirect.
Have another answer? Share your knowledge.