1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Website can't view "user" folders

Discussion in 'Web Design & Development' started by gurutech, Jan 6, 2013.

Thread Status:
Not open for further replies.
Advertisement
  1. gurutech

    gurutech Thread Starter

    Joined:
    Apr 23, 2004
    Messages:
    2,960
    I have a personal website set up, with several "users" folders, based off the main site.

    Running Apache on Fedora 18. This worked fine on Fedora 17, but now, after the upgrade, followed by removing and reinstalling the httpd service, I can only view the main site. Had to reinstall due to configuration issues caused by the upgrade that were causing httpd to fail.

    Now, anything following the main site, with a ~username path cannot be found. (404 error)

    I've re-added the virtual directories and checked permissions, with a /home/*/public_html section, restarted the service, and even rebooted, but still not working.

    Any ideas?
     
  2. dvk01

    dvk01 Moderator Malware Specialist

    Joined:
    Dec 14, 2002
    Messages:
    56,452
    First Name:
    Derek
    are you using cpanel/WHM with that webserver

    the default install of apache & cpanel comes with Apache mod_userdir Tweak enabled. that blocks http access to any folder with a ~ as start which stops the bandwith being used by other users

    if you are using cpanel, then uncheck the Enable mod_userdir Protection under WHM/security center

     
  3. gurutech

    gurutech Thread Starter

    Joined:
    Apr 23, 2004
    Messages:
    2,960
    Not sure what you mean by cpanel or WHM, but I checked my 00-base.conf file, and commented out the line for mod_userdir, and restarted the httpd service, but still can't access user directories.
     
  4. gurutech

    gurutech Thread Starter

    Joined:
    Apr 23, 2004
    Messages:
    2,960
    Created an "Alias" using the line:
    Code:
    Alias   /~username  /home/username/public_html
    and it worked, however I don't want to have to do this for several users.

    How can I edit the httpd.conf file to avoid doing this?

    Thanks in advance!
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1083940

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice