Skip to main content

Redirect webmail.domain.com to webmail.domain.com:2096

Comments

4 comments

  • cPRex Jurassic Moderator
    Hey there! By default, I would expect both of those to work normally on the machine without any customization as those are built-in features of the cPanel tools. Do you have anything else set up that might be interfering with this behavior, such as customizations to Apache or tools like Cloudflare?
    0
  • Mise
    hi!. No, I dont' have cloudflare or apache personalizations. Server and CPanel install is new. I would be grateful for any help. Maybe some WHM option interfers?
    0
  • cPRex Jurassic Moderator
    Could you open a ticket with us so we can check this? That is one of those cPanel features that should just work normally, so it might be best for us to take a look at that for you.
    0
  • Mise
    ok, its partially solved. It works showing the CPanel to choose between :2093 or :443 Although my intention was to limit the access to Cpanel services (webmail, etc) by country. I try this inside WHM -> Apache -> includes (global pre-conf directive) although it doesn't work: RewriteCond %{HTTP_HOST} ^.*(autoconfig|autodiscover|cpanel|cpcalendars|cpcontacts|webdisk|webmail|whm).* [NC,OR] RewriteCond %{REQUEST_URI} ^.*(autoconfig|autodiscover|cpanel|cpcalendars|cpcontacts|webdisk|webmail|whm).* RewriteCond %{ENV:GEOIP_COUNTRY_CODE} !^(DE|CH|ES|IT|FR|)$ RewriteRule ^ 404 [END]
    I have mod_geoip installed and working. Is there some way to include these conditions inside the Apache pre-directives?
    0

Please sign in to leave a comment.