Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Automatically create an alias of the temporary URL of a new account.

Discussion in 'Bind/DNS/Nameserver' started by Marcelo R. Berwanger, Aug 5, 2016.

Tags:
  1. Marcelo R. Berwanger

    Joined:
    Aug 5, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    DataCenter Provider
    Hello!

    How do I automatically create an alias of the temporary URL when a new account is created?

    For example: user.server.hostdomain.xyz to hostdomain.xyz/~user

    You can help me?

    Marcelo R. Berwanger
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,323
    Likes Received:
    1,851
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The URL you are referring to stems from the Apache Mod_Userdir tweak documented at:

    Apache mod_userdir Tweak - Documentation - cPanel Documentation

    The URL is not intended for permanent use, and no support exists to automatically configure a redirect/alias to that URL. You could manually add a custom Mod_Rewrite rule. However as an alternative, you should consider editing the hosts file on the workstation attempting to access the domain name until the DNS change propagates:

    hosts (file) - Wikipedia, the free encyclopedia

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. MadroosterTony

    PartnerNOC

    Joined:
    Jan 14, 2007
    Messages:
    17
    Likes Received:
    9
    Trophy Points:
    153
    We purchase white label domains (i.e. server.com) for every server outside of our white label hostname and then use a WHM hook and cPanel API to create user.server.com on account creation so that every user has a temporary URL that doesnt use /~user URL as it has had some security issues in the past.
     
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice