Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    May 2003
    Posts
    93

    Default cpanel bug+fix:mod_userdir Tweak is not working with hostname ?

    users can still use http://host.name.com/~user/

    mod_userdir Tweak is enabled

    to fix this enable userdir tweak and edit your httpd.conf
    vi /usr/local/apache/conf/httpd.conf

    find this:

    <VirtualHost **.**.**.**>
    BytesLog domlogs/host.name.com-bytes_log
    ServerName host.name.com
    DocumentRoot /usr/local/apache/htdocs
    </VirtualHost>

    and change to this:

    <VirtualHost **.**.**.**>
    BytesLog domlogs/host.name.com-bytes_log
    ServerName host.name.com
    <IfModule mod_userdir.c>
    Userdir disabled
    Userdir enabled ********
    Userdir enabled ********
    Userdir enabled ********
    </IfModule>
    DocumentRoot /usr/local/apache/htdocs
    </VirtualHost>


    instead of ********* put user wich you want to enable usage of http://host.name.com/~user/

    Last edited by heavypredator; 07-11-2003 at 02:24 AM.

  2. #2
    Member dthigpen's Avatar
    Join Date
    May 2003
    Location
    Apex, NC
    Posts
    37

    Default Take out..

    Take out the global mod_userdir statement that's a bit higher up in your httpd.conf. That will fix your problem.

    cPanel.net Support Ticket Number:
    Douglas Thigpen
    http://www.dthigpen.com

  3. #3
    Member
    Join Date
    May 2003
    Posts
    93

    Default

    but will disable shared SSL

    my fix dont disable it - but it would be nice if developers would implemented it in next release

    cPanel.net Support Ticket Number:

  4. #4
    Member cass's Avatar
    Join Date
    Jul 2002
    Location
    Argentina/USA/Mexico
    Posts
    354

    Default

    Hehe.... strange way you have to solve things

    why dont select the GLOBAL select box...
    and then click to ALLOW it on your SHARED SSL domain ?

    this will work.
    I have userdir disabled on all domains, except one or two I use to show sites (using /~username ) that are not yet resolving to the IP. (in the meanwhile, people can see their websites using user_dir) So for you use with shared SSL is THE SAME

    Regards.

    cPanel.net Support Ticket Number:
    Carlos Ariel Sepúlveda
    CAS company :: 1997-2011, 14 Years! :: Dedicated Attitude
    http://www.cascompany.com :: Providing CPANEL/WHM Servers since 2002 !

  5. #5
    Member
    Join Date
    May 2003
    Posts
    93

    Default

    Originally posted by cass
    Hehe.... strange way you have to solve things

    why dont select the GLOBAL select box...
    and then click to ALLOW it on your SHARED SSL domain ?

    this will work.
    I have userdir disabled on all domains, except one or two I use to show sites (using /~username ) that are not yet resolving to the IP. (in the meanwhile, people can see their websites using user_dir) So for you use with shared SSL is THE SAME

    Regards.

    cPanel.net Support Ticket Number:
    the problem is when you have user using your hostname not domains

    domains are blocked but hostname not - then bandwitch usage goes to your hostname

    cPanel.net Support Ticket Number:

  6. #6
    Member
    Join Date
    Oct 2003
    Posts
    46

    Default UserDir, what to do?

    Okay, running Cpanel Release 10.6.0-R147.

    I'd like to get user directories working because it usually takes DNS 2-3 days to update before a client can visit their site.

    I've run /scripts/rebuildhttpdconf

    *Calling this in the URL:
    http://www.networksynergies.biz/~bsa1
    --or--
    http://www.networksynergies.biz/~bsa1/

    *Gives me this in the log file (/etc/httpd/logs/error_log):
    [Fri Sep 2 15:57:19 2005] [error] [client 70.116.4.157] File does not exist: /home/netsyn/public_html/~bsa1
    --or--
    [Fri Sep 2 15:49:44 2005] [error] [client 70.116.4.157] File does not exist: /home/netsyn/public_html/~bsa1/

    *And this in the web-browser:
    Not Found
    The requested URL /~bsa1/ was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/1.3.33 Server at www.networksynergies.biz Port 80

    Thanks for the help,
    Brad

Similar Threads & Tags
Similar threads

  1. Apache mod_userdir Tweak
    By kuyenmotdivad in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 06-18-2011, 03:34 PM
  2. Mod_UserDir Tweak
    By PsyberMind in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-16-2010, 08:34 AM
  3. Tweak mod_userdir Security
    By crazyaboutlinux in forum Security
    Replies: 7
    Last Post: 07-06-2010, 01:30 AM
  4. Tweak mod_userdir Security question
    By knipper in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-12-2010, 11:36 AM
  5. mod_userdir tweak (~user) not working
    By wills in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-31-2005, 03:20 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube