Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member cwalke32477's Avatar
    Join Date
    Mar 2010
    Location
    Atlanta, Georgia
    Posts
    94
    cPanel/Enkompass Access Level

    Root Administrator

    Default Can't get vhost to work

    I am trying to get a server setup and the vhost won;t work.
    (xxx.xxx.xxx.xxx/~username)

    Proxy is enabled.
    I can't find where to enable mod_rewrite; it's not in the easy apache options.

    Code:
    Proxy [More Info ↑]
      	required for cPanel/WHM/Webmail/Webdisk proxy VirtualHost support
    If I try to access a url through ip/~username it takes me to a blue page that says
    Code:
    The server can not find the requested page:
    
        xxx.xxx.xxx.xxx/~username/ (port 80) 
    
    Please forward this error screen to 174.34.155.82's WebMaster.
    Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8e-fips-rhel5 mod_mono/2.6 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at 174.34.155.82 Port 80
    Any Ideas? I've looked all over for an answere to this, but can;t find it

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Question

    Have you checked the setting in WHM located here?
    WHM >> Security Center >> Apache mod_userdir Tweak


    Apache's mod_userdir allows users to view their sites by entering a tilde(~) and their username as the uri on a specific host. For example http://test.cpanel.net/~fred/ will bring up the user fred's domain. The disadvantage of this feature is that any bandwidth usage used by this site will be put on the domain it is accessed under (in this case test.cpanel.net). mod_userdir protection prevents this from happening. You may however want to disable it on specific virtual hosts (generally shared ssl hosts.)

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

    Default

    Be advised that mod_userdir doesn't work properly under non-DSO
    based servers such as those with phpSuExec, SuPHP, or FCGI based PHP.

    On these servers, mod_userdir protection should be enabled to disable the use of mod_userdir (http://ip/~username) as you should not be trying to connect to your site that way under those server types.

    I can't find where to enable mod_rewrite
    It's part of the base core whenever you use EasyApache and really not
    something that you need to check off specifically.

    (In other words, you almost always have mod_rewrite and probably
    have it already installed right now as well too)

    Run the following at the shell (root) to see what modules you have presently:
    Code:
    #  httpd -l | sort -g
    Be advised that some web software programs are a bit lazy where it
    comes to checking Apache modules and simply check the phpinfo()
    screen contents to see if you have certain Apache modules installed and then
    might have their programs tell you that you don't have mod_rewrite and
    others when indeed you actually do. This is because on any server type
    other than DSO, Apache modules loaded are not listed in the phpinfo() screen.

Similar Threads & Tags
Similar threads

  1. How many domains/vhost ?
    By MaRiOsGR66 in forum New User Questions
    Replies: 2
    Last Post: 07-14-2011, 06:07 AM
  2. Where is VHOST templates?
    By esupport.org.ua in forum cPanel Developers
    Replies: 1
    Last Post: 06-29-2009, 01:07 PM
  3. <VHost> Editing
    By h0tmailz in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-14-2009, 11:22 PM
  4. where did vhost templates go???
    By tywe in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-24-2007, 01:37 AM
  5. vhost for bnc
    By aksi in forum New User Questions
    Replies: 2
    Last Post: 09-26-2007, 10:12 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube