Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    18

    Default mod userdir bug???

    well mod userdir protection causes some conflict

    NameVirtualHost X.X.X.X:80

    <VirtualHost X.X.X.X>
    ServerAlias www.domain.com domain.com
    ServerAdmin webmaster@domain.com
    DocumentRoot /home/user1/public_html
    BytesLog domlogs/domain.com-bytes_log
    User user1
    Group user1
    <IfModule mod_php4.c>
    php_admin_value
    open_basedir "/home/user1/:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    <IfModule mod_userdir.c>
    UserDir disabled
    UserDir enabled user1
    </IfModule>
    ServerName www.domain.com
    ScriptAlias /cgi-bin/ /home/user1/public_html/cgi-bin/
    User user1
    Group user1
    CustomLog domlogs/domain.com combined
    </VirtualHost>


    <VirtualHost X.X.X.X>
    ServerAlias www.anotherdomain.com anotherdomain.com
    ServerAdmin webmaster@anotherdomain.com
    DocumentRoot //home/user2/public_html
    BytesLog domlogs/anotherdomain.com-bytes_log
    User user2
    Group user2
    <IfModule mod_php4.c>
    php_admin_value
    open_basedir "//home/user2/:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    <IfModule mod_userdir.c>
    UserDir disabled
    UserDir enabled user2
    </IfModule>
    ServerName www.anotherdomain.com
    ScriptAlias /cgi-bin/ //home/user2/public_html/cgi-bin/
    User user2
    Group user2
    CustomLog domlogs/anotherdomain.com combined
    </VirtualHost>


    but this causes calls to http://X.X.X.X/~user2

    to go to http://X.X.X.X/user1/public_html/~user2

    ofcourse user1 is the first virtual host using this ip

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Probably because you've forgotten to put a trailing slash on the end of the URL - I've never seen what you're reporting when using the url correctly, i.e. http://11.22.33.44/~username/
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Oct 2004
    Posts
    18

    Default

    well chirpy ofcourse i tried putting a trailing slash it didnt work also i checked the httpd.conf with other servers i got it looked the same

    and this problem is server wide when i turn mod_userdir protection off everything is ok

    but when mod_userdir protection is on i cant use http://11.22.33.44/~username/

    and error_log reads

    Code:
    [Wed Apr 20 20:03:30 2005] [error] [client 81.10.18.244] File does not exist: /home/user1/public_html/~user2/
    and i get a 404 error on the browser screen

    this happenes on all ips the first account set to an ip in httpd.conf takes the calls

    although on other servers it works fine
    Last edited by nazmy; 04-21-2005 at 01:40 PM.

Similar Threads & Tags
Similar threads

  1. open_basedi and userdir problem
    By soulmaster in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 07-15-2009, 12:47 PM
  2. mod userdir problem
    By Zion Ahead in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-07-2006, 02:26 AM
  3. mod userdir issue
    By Zion Ahead in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-06-2006, 04:13 PM
  4. Install interchange and userdir
    By latpanel in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-14-2006, 04:38 AM
  5. enabling userdir i.e. ~user
    By jimcarter in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-04-2002, 01:00 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube