The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Bind / DNS / Nameserver Issues' 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:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    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.
     
  3. MadroosterTony

    MadroosterTony Registered
    PartnerNOC

    Joined:
    Jan 14, 2007
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    1
    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