Apache DocumentRoot Location...

Discussion in 'Apache' started by Washuu, Oct 21, 2008.

  1. #1
    This is Apache on OS 10.5.

    I changed my DocumentRoot from /Library/WebServer/Documents to /Users/Username/Sites so that I can just have my document root in my user folder. The only issue is that Apache still allows http://localhost/~Username to be accessed. It gets the same web site, but I would prefer to just come up as 404 not found. If I remove my Username.conf in apache2/users/ folder then nothing works.

    Which is the correct way to configure this?
     
    Washuu, Oct 21, 2008 IP
  2. Washuu

    Washuu Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Nevermind, I found I needed to comment out a line in httpd.conf.
    # User home directories
    #Include /private/etc/apache2/extra/httpd-userdir.conf
     
    Washuu, Oct 21, 2008 IP