The Perfect Server (Ubuntu 12.04 LTS) points to SquirrelMail login

Discussion in 'Installation/Configuration' started by squirrelmail, Dec 7, 2013.

  1. squirrelmail

    squirrelmail New Member


    I followed these steps to install The Perfect Server - Ubuntu 12.04 LTS (Apache2, BIND, Dovecot, ISPConfig 3),

    - Home servername (hostname):
    - Private IP:
    - Public IP: (dynamic, provided by ISP)
    - Domain name: (registered via registrant)

    I want to use my perfect server as hosting websites and mails. I'll use my registrant DNS server. I can change the all DNS records myself.

    Installation went smoothly without any problems and ISPConfig, etc... works fine. The guideline was awesome and simple to follow, thanks!

    My problem is that if I try to access my domain (, it will point to squirrelmail login page and not to website root folder. It always point to http://<private ip|public ip||mydomain>/src/login.php page, why?

    Where is that redirect rule or how to solve this problem?

    I tried also an other domain. The is also registered to me and I changed A record to point my Perfect Server Public IP. If I try to access it also points/redirects to page.

    Please help!

  2. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Please check your vhost files.
    Is there any Vhost that is defined with ip?
    instead of
    <VirtualHost *:80>
  3. squirrelmail

    squirrelmail New Member


    I found an other thread,

    The problem was due to this vhost rule

      DocumentRoot /usr/share/squirrelmail
    I don't know why. Why this vhost rule will mess up the configuration?

    --- Original guideline

    if you'd like to define a vhost like where your users can access SquirrelMail, you'd have to add the following vhost configuration to /etc/apache2/conf.d/squirrelmail.conf:

      DocumentRoot /usr/share/squirrelmail
    Make sure you replace with the correct IP address of your server. Of course, there must be a DNS record for that points to the IP address that you use in the vhost configuration. Also make sure that the vhost does not exist in ISPConfig (otherwise both vhosts will interfere with each other!) ???.

    - I had CNAME record: to point to
    - points to my public IP of course

    My router will handle port forward from public IP to my private IP:
  4. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    The reason is simple:
    Any ip vhost will override all * vhosts.
    So try changing this vhost to *:80 instead of removing it completely.
  5. squirrelmail

    squirrelmail New Member

    Aaah... got it. Thanks!
  6. squirrelmail

    squirrelmail New Member

    - If I want to access mail via then I'll need DNS record, right?
    - If I want to access ISP Config via then I'll need DNS record, or not? is my server hostname (FQDN)
  7. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Yes, that's right.

Share This Page