CentOS Perfect Server - Webmail Alias?

Discussion in 'Installation/Configuration' started by crypter, Jul 16, 2014.

  1. crypter

    crypter New Member

    Hi guys. Could someone tell me where the true URL is for http://domain.com/webmail? I want to set it up as a subdomain (e.g. http://mail.domain.com) but don't where the webmail is technically located. I know I could just set the subdomain to go to /webmail, but I'd like to know where the alias file is that tells it to go to the Squirrelmail login.
     
  2. srijan

    srijan New Member HowtoForge Supporter

    Refer the thread, it will help you.
     
  3. crypter

    crypter New Member

    Thanks for the link, but that's not exactly what I'm looking for. That simply talks about setting up redirects which I don't have a problem with. I have many subdomains set up to redirect. I guess I should elaborate more on my problem.

    I'm running a blogging software that ultimately takes control of your domain, and all directories following after. This means the blog software runs on domain.com and all subdirectories. So in a normal ISPConfig environment, I would simply type in domain.com/webmail and it would take me to the squirrelmail login page. However because this particular blog software takes over the domain and all subdirectories, it tries to register domain.com/webmail as an actual page within the blog which doesn't exist.

    Because of this, I'm trying to find the ACTUAL link to the squirrelmail login page. All I've found within the squirrelmail config that references the /webmail alias is the following from /etc/httpd/conf.d/squirrelmail.conf

    Code:
    #
    # SquirrelMail is a webmail package written in PHP.
    #
    
    Alias /webmail /usr/share/squirrelmail
    
    <Directory "/usr/share/squirrelmail/plugins/squirrelspell/modules">
      Deny from all
    </Directory>
    
    # this section makes squirrelmail use https connections only, for this you
    # need to have mod_ssl installed. If you want to use unsecure http
    # connections, just remove this section:
    <Directory /usr/share/squirrelmail>
      RewriteEngine  on
      RewriteCond    %{HTTPS} !=on
      RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    </Directory>
    I'm wondering if this little bit of code is the one I need to play with:
    Code:
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
     

Share This Page