Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Mar 2010
    Posts
    6

    Default Temporary website url

    Hi there,

    My brain must have sneaked away when I was sleeping.

    Im trying to get xxx.xxx.xxx.xxx/~user to work as temporary url, but cpanel just says it cant find it.

    The users exists and i can access the site from going to his domain name.

    What have I disabled?

  2. #2
    Member
    Join Date
    May 2008
    Posts
    1,203

    Default

    Please make sure that you have not disalbed the mod_userdir from WHM for the domain. You can check it from WHM --> Security Center --> Apache mod_userdir Protection.

  3. #3
    Member
    Join Date
    Mar 2010
    Posts
    6

    Default

    I excluded the default host from the protection and it worked.

    Thnx

  4. #4
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Side footnote, you can't use mod_userdir with non-DSO (php) based servers.

    For these, either assign a dedicated IP to the account using the IP number as the "temporary address" or assign a subdomain as a parked domain of a valid domain already on the server.

    Don't use http://x.x.x.x/~username type of addresses with these!

  5. #5
    Member
    Join Date
    Jan 2002
    Posts
    16

    Default

    Quote Originally Posted by Spiral View Post
    Side footnote, you can't use mod_userdir with non-DSO (php) based servers.

    For these, either assign a dedicated IP to the account using the IP number as the "temporary address" or assign a subdomain as a parked domain of a valid domain already on the server.

    Don't use http://x.x.x.x/~username type of addresses with these!
    Can you explain why not?

    Thanks


    Neil

  6. #6
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by spellinn View Post
    Can you explain why not?
    Absolutely! When you access a site under a DSO based server,
    the scripts are executed as the user "nobody" so the permissions are the same whether the visitor accesses the site by hostname, by IP address, or from some other site or hostname using mod_userdir (~username)

    Under non-DSO servers (preferred for security and many other reasons), all scripts are executed on sites as the user owner which works find by direct domain address or IP but becomes problematic if you attempt to access sites by some other hostname, site, or account via mod_userdir means because the scripts will attempt to be executed as the effective ID of the site from which you are originally calling instead of the username of the owner and this is when the permission and ownership problems begin.

    Mod_Userdir was ill conceived from the beginning and I don't recommend using it irregardless of what kind of server you have but in the case of non-DSO servers, you got more reasons to avoid using it.

    For those who don't have their domain attached yet and need a temporary address, I would recommend parking a subdomain of another domain already active on the server on top of the account to act as a temporary address if you are unable to assign a dedicated IP address.
    For those comfortable with httpd.conf editing, this is much better done by means of a "ServerAlias" in the virtualhost section for the site but could also be done by a simple subdomain parking on top of the account.

Similar Threads & Tags
Similar threads

  1. Addon Domain Temporary URL setup
    By shaneg in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-24-2009, 02:14 AM
  2. suPHP and temporary URL
    By dexus in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-17-2007, 07:36 AM
  3. Temporary URL Doesn't work for anyone!
    By Maxplayer14 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-29-2004, 03:30 AM
  4. temporary url
    By alechiggins in forum New User Questions
    Replies: 2
    Last Post: 05-17-2004, 10:59 AM
  5. temporary URL
    By brandonk in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-28-2002, 01:20 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube