Instead of roundcube i get is functioning normally

TestUser

Verified User
Joined
Aug 26, 2011
Messages
220
Hello,
created new user in DA... all is good..
changed DNS to this server to use for email and webmail..
when I go to webmail.thisdomain
instead of roundcube I see this
is functioning normally
any ideas?
 
Did you change the vhost to make it that way?
Because by default there is no webmail.domain.com but you have to visit domain.com/webmail to get to the webmail.

If you want to change it to webmail.domain.com then check this please:
 
yes, i made chainges.. so that every new user gets webmail.subdomain and cert for it...
but now trying to find a way to auto redirect from HTTP to https for roundcube..
I'm just gonna add .htaccess to the roundcube folder :P
 
.htaccess didnt work... but i deleted index.html from /var/www/html
and added index.php with this
Code:
if (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] === "off") {
    $location = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    header('HTTP/1.1 301 Moved Permanently');
    header('Location: ' . $location);
    exit;
}
now perfect!
 
Back
Top