subdomain redirects

Discussion in 'Installation/Configuration' started by tahunasky, Aug 2, 2012.

  1. tahunasky

    tahunasky New Member

    Hi,

    i want to point the following subdomains to the appropriate apps:

    mail.mydomain.com -> /usr/share/squirrelmail
    cloud.mydomain.com -> /usr/share/owncloud

    however when i do this it cant find them. i have tried:

    SITES/SUBDOMAINS

    Host mail
    Domain mydomain.com
    Redirect Type noflag
    Redirect Path /../../../../../usr/share/squirrelmail/
    Active check

    That worked for a while, and then it didnt.

    i have also tried:
    Redirect Path /usr/share/squirrelmail/
    Redirect Path /webmail/
    Redirect Path http://mydomain.com/webmail/
    Redirect Path https://mydomain.com/webmail/

    and nothing seems to work..

    if i do a nslookup mail.mydomain.com from within the server or on the network, it brings back the correct ip address.
    i have also tried setting the DNS with an A record and CNAME for the mail / cloud subs:

    A mydomain.com. 10.0.0.95
    A mail 10.0.0.95

    or

    A mydomain.com. 10.0.0.95
    CNAME mail 10.0.0.95

    has anyone got this working ?

    thanks for any help..
     
    Last edited: Aug 2, 2012
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Subdomain redirects are not made to load content from a directory outside the web dir.

    1) Delete the subdomain in ispconfig.
    2) Edit the file in /etc/apache2/conf.d/squirrelmail.conf and add there:

    <VirtualHost 1.2.3.4:80>
    DocumentRoot /usr/share/squirrelmail
    ServerName webmail.mydomain.com
    </VirtualHost>

    3) Do the same for owncloud.
     

Share This Page