How to make mydomain.com/~username work?

Discussion in 'Site & Server Administration' started by jasonsc, Apr 20, 2008.

  1. #1
    Hi guys,

    how can I make mydomain.com/~username work? This is to see the site in public_html of the users home directory being seen by browser before domain is actually added for that user

    Thanks!
     
    jasonsc, Apr 20, 2008 IP
  2. IwhiC

    IwhiC Peon

    Messages:
    2,594
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #2
    are you the owner of the server or have root access if so you need to make sure that it is enabled on the server for it to allow you to do this..

    in root go to security settings
    then
    Apache mod_userdir Tweak
    then
    make sure that it is disabled..

    this box should not be checked if you want this to work (or you can choose what domains can use it.)

    enable Apache mod_userdir Tweak <-----You do not want this box checked if you want to view your site like that.

    you can use http://ipaddress/~username/
     
    IwhiC, Apr 20, 2008 IP
  3. jasonsc

    jasonsc Well-Known Member

    Messages:
    1,696
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    165
    #3
    Hi,

    thanks for your help! Yes I do have root access, but I am going to have to do it through shell. My CP does not have such an option anywhere. Can you tell me what config file I can find this in? I want to enable it for all usernames.
     
    jasonsc, Apr 21, 2008 IP
  4. jasonsc

    jasonsc Well-Known Member

    Messages:
    1,696
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    165
    #4
    Ok, so I found this in my apache config file:


    edited: if I would actially read the instructions in config file there would not be any problems :)

    So for everyone interested, you need to go to your apache confing file and simply uncomment #UserDir public_html and comment UserDir disabled
     
    jasonsc, Apr 21, 2008 IP